Software reset for Arduino

Started by philjynx, March 17, 2019, 03:42:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

philjynx

...

gumtown

#1
depends on the Arduino CPU type.

for the Teensy LC or 3.1 it is

SCB_AIRCR = 0x05FA0004;

which will initiate self destruct and reboot the hardware from a cold start.

Would a register/ peripherals flush routine be more elegant ?

another option is a power off reset button (normally closed PB).

If you are using a Nano, you are out of luck, unless you flash it with the UNO boot-loader, and use a WDT routine + the hardware reset input pin.
Free "GR-55 FloorBoard" editor software from https://sourceforge.net/projects/grfloorboard/