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 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? If this does not help, you may post you code here or mail it to me for inspection. 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