[SOLVED]Reset/reboot Industruino D21G with code
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
Hi Tristan, just to add to this; another user has reported that this also works to reset the D21G:
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!
About This Forum
This community is for professionals and enthusiasts of our products and services.Read Guidelines
|Asked: 4/19/18, 4:42 PM|
|Seen: 2731 times|
|Last updated: 4/20/18, 12:38 PM|
Hey Tom, thanks for the hint. I will check it out.