Problems with Code

The EtherDue combines a super powerful 84MHz Cortex M3 with onboard ethernet connectivity. Dual Micro USB, a MicroSD card slot, switchmode power supply. 100% Arduino Due compatible. [Product Page]
Post Reply
Joined:Mon Sep 01, 2014 1:35 pm
Problems with Code

Post by ozchasers » Mon Sep 01, 2014 1:48 pm

I just received my EtherDue and I am playing around with it trying to get my existing code working.

One of the things that just refuses to work is the library for the RTC module, it gives me the following errors when trying to run the TestRTC example:

Code: Select all

In file included from TestRTC.ino:49:0:
C:\...\Arduino\libraries\DS3232RTC/DS3232RTC.h:82:22: error: 'tmElements_t' has not been declared
     static void read(tmElements_t &tm);
Also I have a where I can send to it commands and it is supposed to respond with text but it doesn't respond at all. The code works on the EtherMega but not on the EtherDue. Is the code on the Due different than other Arduinos?

Freetronics Staff
Freetronics Staff
Joined:Tue Apr 09, 2013 11:19 pm
Location:Melbourne, Australia

Re: Problems with Code

Post by angusgr » Wed Sep 03, 2014 12:02 am

Hi ozchasers,

The tmElements_t data type is defined as part of the "Time" library, which you can download as here:

Is it possible that this library was installed in the 1.0.x Arduino IDE version you were using for the EtherMega, and hadn't been installed into the 1.5.x IDE for EtherDue?

Let us know if you still run into problems, it my be that the RTC3232 library needs updating for Due.


Post Reply