-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
About the problem of software restart of STM32duino
I have two questions as follows:
- When the stm32 accidentally crashes due to the single use of stm32, the stm32 will only be stuck there, while the 328p will automatically restart.
- When I artificially want to restart stm32, generally speaking, I will write the following program on arduino. With this program, 328p will restart, while stm32 will be stuck there and will not restart.
Looking forward to your reply, I wish all the best!
`#include <Arduino.h>
void(* resetFunc) (void) = 0;//定义重启变量
void setup()
{
Serial.begin(115200);
Serial.println("启动成功");
delay(1000);
}
void loop()
{
Serial.println("重启");
delay(1000);
resetFunc();//重启
}`
Metadata
Metadata
Assignees
Labels
No labels