AnsweredAssumed Answered

Recovering information after software reset

Question asked by Peter Mather on Jun 14, 2018
Latest reply on Jun 14, 2018 by waclawek.jan

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

Outcomes