AnsweredAssumed Answered

Code for soft reset STM32F3 series MCU ?

Question asked by Davy Jones on Mar 20, 2018
Latest reply on Mar 20, 2018 by Jan Waclawek

I am working STM32F303CC MCU. Trying to find sure shot way of soft resetting the device. 


Previously I tried with NVIC_SystemReset()  . It was and miss. On some boards it worked perfectly and on other boards the system will just stop responding.  


So I have written a small function to soft reset the core, Need feedback from the embedded gurus in the forum

void soft_reset(void)

SCB->AIRCR =  ((uint32_t)0x05FA0000) |  ((uint32_t)0x01);