AnsweredAssumed Answered

Can _Startup skip specific variable in initialization?

Question asked by Marshall Schiring on Feb 24, 2014
Latest reply on Feb 26, 2014 by Marshall Schiring

I have a project where I need a global variable to not be erased after the bootloader calls _Startup(). I have noticed in my *.map file that not all sections of RAM are erased and I'm not sure how these values that are used for erasing RAM are created. I don't feel comfortable just placing this 1 byte variable in a section that is currently not erased because I'm afraid future development might cause the variable to be erased later. Is there some sort of keyword or parameter I can give this variable to assure it is not re-initialized after the bootloader runs?


I'm using CW 5.9.0


Thanks for any suggestions!