Question
Recovering information after software reset
Posted on June 14, 2018 at 16:39
My program executes a software reset under certain conditions using 'NVIC_SystemReset();'
Before executing the reset I need to set a variable that will still be accessible after the reset so the program can understand the cause and take appropriate action. On a PIC I do this by using a special variable '_excep_code'.
How can I do the same thing on the STM32.
Developing on Nucleo-H743, Software Workbench for STM32
