I have a couple of variables in my program that need to survive a reset. Thus, I did:
In flash_placement.xml, I added the section:
I am using the GNU linker.
However, the variable seems to be zeroed at startup. I can find the .non_init section in the map file and it contains my variable.
How can I solve this?
In flash_placement.xml, I added the section:
I am using the GNU linker.
However, the variable seems to be zeroed at startup. I can find the .non_init section in the map file and it contains my variable.
How can I solve this?