AnsweredAssumed Answered

Keeping Variable at Watchdog reset

Question asked by mabo on Jun 6, 2018
Latest reply on Jun 9, 2018 by dhenry

Hello ST Community,


I´m using a STMS8105x6 MCU that has an appilcation running that communicates with other MCUs via UART and I2C. I also have a IWDG running, that does sometimes a reset because of communication errors.


What I want to know is, how to save a global volatile uint32_t variable that has an important value, that should not be lost at a watchdog reset.


Saving it to the EEPROM at every change is not an option. But maybe it can be stored into a backup register or the RAM somehow. Or can I prevent it from being newly initialized at startup?!


Using STVD + Cosmic Compiler.


Thank you in advance for your help.