STM32软件复位办法

 在需要软件复位的地方添加如下两句代码

__set_FAULTMASK(1); 
NVIC_SystemReset();

  

原文地址:https://www.cnblogs.com/achao123456/p/6549106.html