[SOLVED]Reset/reboot Industruino D21G with code
Hello everyone,
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 ?
Many thanks
Tristan Mehamli - Mugen
Hi Tristan, just to add to this; another user has reported that this also works to reset the D21G:
NVIC_SystemReset();
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.
Your answer
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!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 4/19/18, 4:42 PM |
Seen: 3437 times |
Last updated: 4/20/18, 12:38 PM |
Hey Tom, thanks for the hint. I will check it out.