Previously, I was able to reboot an Instruino 1286 like this :
asm volatile (" jmp 0");
But now with the D21G, this instruction returns an error :
[...]\cckn2r5A.s: Assembler messages:
[...]\cckn2r5A.s:2916: Error: bad instruction `jmp 0'
Any idea on how can I reset/reboot the D21G ?
Tristan Mehamli - Mugen
Found it. WatchDog timer is THE solution.
Two libraries must be added: Adafruit Sleepy Dog (can be found in the library management) and Adafruit ASF Core (this one must be downloaded from github: https://github.com/adafruit/Adafruit_ASFcore and added as a zipped library).
Then this is pretty straightforward: Watchdog.enable(DELAY_IN_MS);
So this problem is solved.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!