Forum : ARM
Original Post
Post Information | Post |
---|---|
October 21, 2009 - 7:21pm
|
I have a number of variables that are stored in the battery-backed SRAM space of the STR9. A custom linker script places these values are at a known location. Starting/ restarting the debugger overwrites these values. I must prevent this. The values must be saved in ram, and must persist between executions. 1) Is there is a way to control the amount/starting address of ram that is used by the debugger? 2) What is the purpose of the "Code Offset" and "Data Offset" items under Debug Environment settings? Are these documented somewhere? |
Hi
As before debugging all memory is erased the only solution
is to rewrite these values each time ou start the debug.
The code offset and data options allow to load code or data with an offeset.
The offset is applied to the all memory block but does not adapt the execution.
For instance you can add in your project several .elf and add different offset to each .elf
so they can be loaded in diffrent memory address each time you start the debug.
Regards,
Matloub