I am using an Arduino Due for vehicle tracking with a GPS/GPRS device. Before using Arduino Due I used an Arduino Uno. When I tryi to load my code in the Arduino Due, it shows me "fatal error: avr\wdt.h: No such file or directory". I can't delete the watchdog from my code as it is important for my device.
Now how can I solve this problem?
-
I googled this library arduinolibraries.info/libraries/sodaq_wdtJuraj– Juraj ♦2018年06月21日 14:42:44 +00:00Commented Jun 21, 2018 at 14:42
1 Answer 1
The Due is a very different board than the Uno. It uses a completely different architecture (ARM vs AVR). You can't use AVR-specific code on an ARM chip, and the Watchdog code is AVR-specific.
You will have to find (or write) the equivalent ARM code using the Due's register set instead.
-
the question is "Now how can I solve this problem ?"2018年06月21日 14:37:14 +00:00Commented Jun 21, 2018 at 14:37
-
This may help: forum.arduino.cc/index.php?topic=350058.msg2416416Majenko– Majenko2018年06月21日 14:39:29 +00:00Commented Jun 21, 2018 at 14:39