Re: [Sdcc-user] PIC banking problems...

2008-09-08 Thread Ov3rM1nd
Ive looked on the .map file and found that cod3 is about 2kb... The problem is that __code char cod3[]={0x1, 0x2, 0x3... is translated in: retlw 0x1 retlw 0x2 retlw 0x3 which occupies 2 bytes each. So, an array that has 1kb, actually has 2kb. Its what i think. Is there a way to do something lik

Re: [Sdcc-user] PIC banking problems...

2008-09-07 Thread Raphael Neider
> I'm getting the error again. The problem is with a big array, but it is > declared as code, not data memory: > > __code unsigned char cod3[]={ OK, as I just found out, this also ends up in a section called ID_filename_number, which is, however, declared as code rather than idata... So you are

Re: [Sdcc-user] PIC banking problems...

2008-09-06 Thread Ov3rM1nd
I'm getting the error again. The problem is with a big array, but it is declared as code, not data memory: __code unsigned char cod3[]={ 0xc3,0x76,0x0c,0x3e,0x00,0xf5,0x33,0xcd,0x63,0x0b,0x33,0xc3,0x76,0x0c,0xdd,0x7e, 0x04,0xd6,0x09,0x28,0x02,0x18,0x1a,0x3e,0x20,0xf5,0x33,0xcd,0xdc,0x0b,0x33,0x3

Re: [Sdcc-user] PIC banking problems...

2008-09-05 Thread Ov3rM1nd
Thanks everyone, i rewrote the code and know it´s ok. Thanks a lot. Pedro Henrique. On 9/1/08, Raphael Neider <[EMAIL PROTECTED]> wrote: > > > You are out of *data* memory (not flash): > > ID_* -> initialized data, such as "int foo = 42;" > > UD_* -> uninitialized data such as "int bar;" > > code

Re: [Sdcc-user] PIC banking problems...

2008-09-01 Thread Raphael Neider
> You are out of *data* memory (not flash): > ID_* -> initialized data, such as "int foo = 42;" > UD_* -> uninitialized data such as "int bar;" > code_* -> program memory "int func(void) { return 42; }" > > The data placed by the linker before and including the stuff in > piccode3.c/.asm exceeds t

Re: [Sdcc-user] PIC banking problems...

2008-09-01 Thread Raphael Neider
Hi, > Im having some problems with a PIC 16F877A. It has 8k of flash memory, my > code has about 4k and i have the code split on 4 files. > Local function are declared static. Still im getting this error: > > error: no target memory available for section "ID_piccode3_1" > > What could i do? You

[Sdcc-user] PIC banking problems...

2008-08-31 Thread Ov3rM1nd
Hi, Im having some problems with a PIC 16F877A. It has 8k of flash memory, my code has about 4k and i have the code split on 4 files. Local function are declared static. Still im getting this error: error: no target memory available for section "ID_piccode3_1" What could i do? Thanks in advance