Arduino Forum

Products => MKR Boards => MKRGSM1400 => Topic started by: salvaleofiq on Feb 08, 2018, 08:40 am

Title: mkrGSM1400 and watchdog
Post by: salvaleofiq on Feb 08, 2018, 08:40 am
Dear all, I would to try the feature of the watchdog, but I don't found any solution for the MKRGSM.
The library Adafruit_SleepyDog.h doesn't compiling:

Adafruit_SleepyDog_Library\utility\WatchdogSAMD.cpp:9:30: fatal error: Adafruit_ASFcore.h: No such file or directory

 #include <Adafruit_ASFcore.h>


Any suggestion?
Thanks in  advance.
Leonardo.
Title: Re: mkrGSM1400 and watchdog
Post by: ballscrewbob on Feb 08, 2018, 02:46 pm
A lot of libraries are AVR specific.
To use them with the MKR they also need to be SAMD compliant for the better MCU.

Sleepydog is quite an old lib.

The MKR is RTC capable and some have had success with the RTCZERO library.
There are others too that are SAMD compliant.

Title: Re: mkrGSM1400 and watchdog
Post by: ellokah on Feb 24, 2018, 11:45 pm
I successfully used the sleepy dog lib from adafruit with my MKR 1400. Actually I modified it a bit to use the EARLY WARNING ISR for non sleeping mode too.

Did you installed the Adafruit_ASFcore lib as well on your IDE, because the sleepy dog lib depends on it?