Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchdog with OpenTracker #4

Open
varlux opened this issue Feb 28, 2017 · 1 comment
Open

Watchdog with OpenTracker #4

varlux opened this issue Feb 28, 2017 · 1 comment

Comments

@varlux
Copy link

varlux commented Feb 28, 2017

Hi everybody,

 I would like to use watchdog in my project, but first I need to understand.....

In Arduino core files (wachdog.ccp - watchdog.h) I find the functions that manage this feature ( watchdogEnable; watchdogDisable; watchdogReset; watchdogDefaultSetup )

but....

In variant.cpp I read (line 319):

// Disable watchdog
WDT_Disable(WDT);

So..... Is it possible to use watchdog? And how to?

Thanks

@ppescher
Copy link
Contributor

SAM3A/X family is different from ATmega. Once you disable the watchdog, you cannot re-enable it.
You may try to comment out that line from "variant.cpp" and add code to handle watchdog in your setup() and loop() functions.
Be aware that it will not be an easy task, because there are many places in OpenTracker code where we have have active waits inside a loop, which may potentially last much longer than the watchdog period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants