Hi,
I have quick question and need a short answer :-)
Is the content of a RAM variable that is declared as __no_init kept after a POR?
I am using IAR IDE C compiler.
BR,
Jan
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.
Hi,
I have quick question and need a short answer :-)
Is the content of a RAM variable that is declared as __no_init kept after a POR?
I am using IAR IDE C compiler.
BR,
Jan
Hello,
The __no_init declaration instructs the startup code not to initialize this variable in RAM. Since POR means "Power On Reset", the RAM will still have power applied, so it should maintain its contents. If you're looking to save variables across power cycles where power is lost, then I would recommend using Flash (non-volatile memory) to periodically back up those variables.
Required info about __no_init variables
Regards,
James
**Attention** This is a public forum