Go Down

Topic: Arduino DUE, I cannot find watchdog disabling. (Read 519 times) previous topic - next topic

kostbill

Hi, I am reading in some topics on this forum, that the variant.cpp file disables the watchdog but I cannot find it in my variant.cpp.

I am using platformio and I just cannot find where the watchdog is disabled, so that I can comment it out and enable it myself.

Does anyone knows?
Thanks.

oqibidipo

Watchdog stuff has been moved; see watchdog.* and main.cpp under cores/arduino/.

kostbill

Thanks,
As you said, I found it in .platformio\packages\framework-arduinosam\cores\sam\main.cpp
and watchdog.cpp in
.platformio\packages\framework-arduinosam\cores\sam\watchdog.cpp

Where the default function is implemented as weak.
So I can make my own watchdogSetup in my file normally :).

Thanks again.

ard_newbie

Search with your favorite search engine, look for watchdog arduino due to find an example sketch to enable watchdog

Go Up