Watchdog timer on NANO 33 IOT

I have some software that compiles fine on the NANO V3. When I compile the code for the NANO 33 IOT I get errors:

avr/wdt.h: No such file or directory

Does the NANO 33 IOT have a watchdog timer? If so, what library contains wdt.h?

The NANO 33 IOT uses a SAMD21 processor, so a lot of things are different. If you search for "SAMD21 WDT" you might find this link (also on this site):

https://forum.arduino.cc/index.php?topic=366836.0

A ways down the page is a post by "MartinL" which gives an example of setting up a watchdog timer on this processor. I have not tried it yet but will be doing so in the next day or two as I also need this.

Will

You also might want to try this library, found a link to it later on in that same thread:

I found this port called FreeRTOS_SAMD21. It can be installed from the IDE Library manager. Works great (from my initial testing at least).