How does one go about specifying a specific address for a variable (in my case pointer table)?
I can get the pointer table to be placed at the specific RAM address, but it is not initialized with the correct data (or any data?).
I start by adding a section in MEMORY
Then, I reserve the memory:
Finally, the romp:
For now, my work around is to define the pointer table as ROM data then copy this over at runtime manually to the RAM pointer table. There must be a better way of doing this. What am I doing wrong here?
Thanks,
Robert
Solved! Go to Solution.
Hi,
I'm afraid that you will need some routine for copying data from Flash vector table into RAM. Technically it is the very same process as initialized variables.
The easiest way is left existing startup code and move your RAM vector table into your section:
Startup will copy data from Flash into RAM and setup VTOR register.
Jiri
Thanks for your help Jiri. Much appreciated.
Robert
Hi,
I'm afraid that you will need some routine for copying data from Flash vector table into RAM. Technically it is the very same process as initialized variables.
The easiest way is left existing startup code and move your RAM vector table into your section:
Startup will copy data from Flash into RAM and setup VTOR register.
Jiri