0

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?

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Jun 21, 2018 at 12:20
1

1 Answer 1

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.

answered Jun 21, 2018 at 13:08
2

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.