Hi,
To set the start address of the entry function (_c_int00) making use of Pkg.addExecutable module & linker cmd file.
It was working as expected in Cortex-A8 target.
Pkg.addExecutable(PROGRAM_NAME, targ, targ.platform,{lopts: '-i ' + environment['xdc.root'] + '/packages' + ' -l link.cmd'}).addObjects(PROGRAM_SOURCES);
linker.cmd
boot > 0x81000000
{
-l ti\targets\arm\rtsarm\lib\boot.aea8f<boot.oea8f>(.text)
}
For a surprise, i found the mapping address is misaligned.
SECTIONS
{
//EXTMEM_CORE1
boot > 0x8d200000
{
-l ti\targets\arm\rtsarm\lib\boot.aem3<boot.oem3>(.text)
}
}
From the map file, finding _c_int00 map into 0x8d20_0000 + 1
ENTRY POINT SYMBOL: "_c_int00" address: 8d200001
&
A constant __TI_static_base_ mapped into 0x8d20_0000
8d200000 __TI_static_base