Skip to content

About the problem of software restart of STM32duino #1906

@CJT1111

Description

@CJT1111

About the problem of software restart of STM32duino
I have two questions as follows:

  1. 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.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions