Hi,
I need to store some paramters in the internal flash. Then I modified the linker file like this:
MEMORY
{
...
PAGE 1 :
FLASHB : origin = 0x3F0000, length = 0x004000,
RAMM1 : origin = 0x000400, length = 0x000400
}
SECTIONS
{
...
FlashStoredPars : LOAD = FLASHB,
RUN = RAMM1,
LOAD_START(_FlashStoredParsLoadStart),
LOAD_END(_FlashStoredParsLoadEnd),
RUN_START(_FlashStoredParsRunStart),
PAGE = 1
}
As I debug in the source code at the line of
MemCopy(&FlashStoredParsLoadStart, &FlashStoredParsLoadEnd, &FlashStoredParsRunStart);
The three addresses are the same, 0x000480, which is obviously incorrect.
What could be the problem?
W. Lin