Where are the values for the Ramfuncs.. symbols set?
My map shows:
20000000 RamfuncsLoadEnd
00000000 RamfuncsLoadSize
20000000 RamfuncsLoadStart
20000000 RamfuncsRunEnd
00000000 RamfuncsRunSize
20000000 RamfuncsRunStart
My .cmd file data
GROUP
{
ramfuncs
{
-l F021_API_CortexM3_LE.lib
}
}
LOAD = FLASHLOAD,
RUN = C0_1,
LOAD_START(RamfuncsLoadStart),
LOAD_SIZE(RamfuncsLoadSize),
LOAD_END(RamfuncsLoadEnd),
RUN_START(RamfuncsRunStart),
RUN_SIZE(RamfuncsRunSize),
RUN_END(RamfuncsRunEnd),
PAGE = 0
In my code, I have this:
// The RamfuncsLoadStart, RamfuncsLoadEnd, and RamfuncsRunStart
// symbols are created by the linker. Refer to the device .cmd file.
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
What am I copying to where?
Thanks,
Pat