My application is like a game that is being played until the interrupt occurs, and then it's a "game over" and I want the game to re-initialize.
How do I do a software reset?
I looked up the reset topic and people were using this code:
void softReset()
{
asm volatile (" jmp 0");
}
This gives me a compiler error that "jmp 0" is a bad instruction. I'm using the Arduino Due, so maybe the inline assembly instructions are different?