This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Trying to configure linker file for non volatile ram, ram when power is applied, non-volatile when not (retains).
Used this in the SECTIONS to keep from zero filling at run time
NVSRAM > NVSRAM_MEMORY, type = NOINIT
However when loading from an emulator, the (ram) is zero filled.
tried NVSRAM > NVSRAM_MEMORY, type = NOLOAD
to keep from zero fill on load, but then run time it zeroed it.
How can I do both, basicaly make it keep anything from writing to it execpt the actual code.
Thanks,
I am not sure that there is non-volitile RAM on the C2000?
Do you mean that you want to run your code out of flash? ie: Non-Volitile.
There is a wiki page about this here:http://processors.wiki.ti.com/index.php?title=C2000_Flash_Common_Issues/FAQs
This is an external chip to the processor, it detects if power if failing and stores its ram to internal flash, then when power is reaplied copies its internal flash back to user ram. This is why I don't want the code to muck with it.
I'm not sure why it is getting cleared out. The C2000 compiler doesn't int anything unless assigned a value in the code, or via a fill value in the linker command file. How is it defined in the code?