Software Reset?

Is there a way to reset the board from inside the software? This was always a difficulty in the AVR boards but I found a function for the Mega to reset the software. Anything similar exist for the Due?

There is a specific Reset Controller.

here how the Due do "software" autoreset (triggered when the USB Native port is opened/closed at 1200bps):

the snippet you need is:

const int RSTC_KEY = 0xA5;
RSTC->RSTC_CR = RSTC_CR_KEY(RSTC_KEY) | RSTC_CR_PROCRST | RSTC_CR_PERRST;
while (true);

Thanks, Cmaglie!

I'm learning my way around Wiring and the Arduino boards and IDE but not very quickly. :blush: