cancel
Showing results for 
Search instead for 
Did you mean: 

Software Reset Only Occurs Once

emwp
Associate II

I am using the STM32H753VIHX. I am using NVIC_SystemReset() to trigger a system reset under fault conditions. This only works once though. I am line by line debugging my code and when I flash the code to the controller and step to my test fault it successfully resets. Once it moves to the beginning of main and I start running it again though, it continues past the fault without issue. I am using a divide by zero error to test it with, and it instead just evaluates the variable to zero. Is there a flag that I need to clear after using the NVIC_SystemReset()? Is there something else that I am missing that needs to be set up?

1 REPLY 1

Make sure NRST isn't driven high externally by another device.

Make sure BOOTx pins aren't floating

The H7 treats reset and power-on resets differently, It's more complex and fickle than I'd like

The reset at the core level should clear all the flags and context. Watch that the debugger isn't altering the experiment..

I'd suggest doing the test without the debugger, initiating the fault via some user interface or command sequence

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..