2006-01-18 06:42 PM
2006-01-12 05:02 AM
How can I define empty function to specify address for new program ? I have written a simple bootloader (IAP).
my ''main.c'' file: void main(void) { ... IO_Init(); //General initialization ... while(1) Loop(); } // and function Loop() : #pragma section (Loop) void Loop(void) { //Nothing at first reset } Can I write in the linker file something like this ? : +seg .Loop -b 0x1000 Is it right?2006-01-12 08:22 PM
2006-01-18 06:42 PM
Hi Luca!
Can I do just something like this (if I want to put function ''LOOP'' at beginning of sector2(0x1000 to 0xE000) ?: (Metrowerks Codewarrior, HIWARE compiler, st72f561) My linker.prm file: NAMES END SECTIONS .. MY_ROM2 = READ_ONLY 0x1000 TO 0xDFFF; // sector 2 .. END PLACEMENT .. LOOP INTO MY_ROM2; .. END Regards, Sergey