Dear:
My environment is CodeWarrior 5.9.0, MPC5634.
I've taken the document AN4329 and AN4497 as the reference. like below:
code:
#pragma section RX ".romsymbols" data_mode=far_abs
__declspec(section ".romsymbols") void delay(int ms);
void delay(int ms)
{
int ii,jj;
if (ms<1) ms=1;
for(ii=0;ii<ms;ii++)
for(jj=0;jj<5500;jj++){}
}
the lcf file is:
MEMORY
{
resetvector: org = 0x00000000, len = 0x00000008
init: org = 0x00000020, len = 0x00000FE0
exception_handlers: org = 0x00001000, len = 0x00001000
internal_flash: org = 0x00002000, len = 0x00007000
myrom: org = 0x00008000, len = 0x00001000
internal_ram: org = 0x40000000, len = 0x00014000
heap : org = 0x40014000, len = 0x00002000
stack : org = 0x40016000, len = 0x00001800
}
.rom_symbols :
{
__ROM_SYMBOLS = . ;
. = ALIGN (0x4);
*(.romsymbols)
. = ALIGN (0x4);
} > myrom
But I always got link warning :
No linker command file input for section '.romsymbols' in file ....
overlap of the .__bam_bootdata section and .romsymbols section
Several options in the community are tried. but still failed.
Original Attachment has been moved to: OldCCP.zip