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,0x3e,
0x20,0xf5,0x33,0xcd,0xdc,0x0b,0x33,0x3e,0x20,0xf5,0x33,0xcd,0xdc,0x0b,0x33,0x18,
0x3f,0xfd,0x21,0x1e,0x80,0xfd,0x7e,0x00,0xd6,0x10,0x20,0x05,0xfd,0xb6,0x01,0x28,
0x02,0x18,0x0a,0x3e,0x01,0xf5,0x33,0xcd,0x63,0x0b,0x33,0x18,0x1a,0xfd,0x21,0x1e,
0x80,0xfd,0x7e,0x00,0xd6,0x20,0x20,0x05,0xfd,0xb6,0x01,0x28,0x02,0x18,0x08,0x3e,
0x00,0xf5,0x33,0xcd,0x63,0x0b,0x33,0xdd,0x7e,0x04,0xf5,0x33,0xcd,0xa5,0x0b,0x33,
...
...
...
...
}
The size of cod3[] is about 1kb.
Thanks.
On Fri, Sep 5, 2008 at 3:35 PM, Ov3rM1nd <[EMAIL PROTECTED]> wrote:
> 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_* -> program memory "int func(void) { return 42; }"
>> >
>> > The data placed by the linker before and including the stuff in
>> > piccode3.c/.asm exceeds the memory limit of 2*0x50 + 2*0x60 = 160+192 =
>> > 352 bytes. Any large arrays/structs in use?
>>
>> For completeness I should add that no object may cross memory bank
>> boundaries. In this case (pic16f877a), no single object (struct/array)
>> can exceed 0x60 (96) bytes, the size of the largest bank(s).
>> On the pic14 architecture, even meddling with the .lkr scripts does not
>> help, as the data banks are (often) at non-contiguous addresses (for
>> pic16, banks are contiguous and can thus be combined into larger ones
>> iff one is careful).
>>
>> Regards,
>> Raphael
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user