morteza_rabi
Newbie level 2
Hi, everyone!
I'm using AT91SAM7X256 . I can't realize how to define persistent variables (that will be not reset after power up) in IAR compiler for ARM. I've gone through the IAR Compiler refrence guide which says that __no_init variables are not initialized when the system starts. Does this necessarily imply that these variables are not destroyed when the system shuts down? I've read in a blog that this __no_init directive only prevents initialization of these variables and it can not make sure that these variables will retain their value when the system shuts down.
Actually, I need to store certain variables that are required to retain their value even when the system in not powerd ON.
The target is to save and keep variables when the device is OFF.
Thanx
Regards
M. Rabi
I'm using AT91SAM7X256 . I can't realize how to define persistent variables (that will be not reset after power up) in IAR compiler for ARM. I've gone through the IAR Compiler refrence guide which says that __no_init variables are not initialized when the system starts. Does this necessarily imply that these variables are not destroyed when the system shuts down? I've read in a blog that this __no_init directive only prevents initialization of these variables and it can not make sure that these variables will retain their value when the system shuts down.
Actually, I need to store certain variables that are required to retain their value even when the system in not powerd ON.
The target is to save and keep variables when the device is OFF.
Thanx
Regards
M. Rabi