I recently attached headers to a 1411 Data Logging Shield and tried to get it working but appears like a serial connection can not be established.
Attached is a screen shot of the PCF8523 file that has been loaded up as a sketch. I added line 13 to do a Serial.print as recommended in a similar problem with different Arduino board but this won't print. Also in the file is a pop-up from PuTTY identifying that a connection could not be opened.
I did put a solder jumper as identified on page 23 of the Adafruit data Logger shield document. No other changes have been made.
Also attached a several photos of the board but they are to big to attach.
Should I have added some other jumpers for the due or change a pin call out in the sketch?
Thanks in advance
1411 interfaace with Arduino Due
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
1411 interfaace with Arduino Due
- Attachments
-
- IMG_1105.JPG (838.67 KiB) Viewed 228 times
-
- Data-Shield_Sketch.png (96.44 KiB) Viewed 228 times
- Franklin97355
- Posts: 23938
- Joined: Mon Apr 21, 2008 2:33 pm
Re: 1411 interfaace with Arduino Due
What are you using for a computer and can you connect to the mega when the logger is not on? The picture is quite blurry, can you post a clear picture of the shield?
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
I have a HP ProBook Laptop running windows 10.
I am not connecting to a Mega, I'm connected to a Due.
I should have mentioned in the first post that I can run a different sketch with the Data Logger connected and that sketch (which has no interface with the Data Logger) has a couple of serial.Prints and it runs as expected.
Attached is another photo, does this help?
Thanks
I am not connecting to a Mega, I'm connected to a Due.
I should have mentioned in the first post that I can run a different sketch with the Data Logger connected and that sketch (which has no interface with the Data Logger) has a couple of serial.Prints and it runs as expected.
Attached is another photo, does this help?
Thanks
- Franklin97355
- Posts: 23938
- Joined: Mon Apr 21, 2008 2:33 pm
Re: 1411 interfaace with Arduino Due
Sorry, When I was replying I spaced the type of Arduino. Did you mean to include the photo?
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
Let me try posting again. The file was too big and didn't take.
- Attachments
-
- IMG_1113A.JPG (959.12 KiB) Viewed 217 times
- adafruit2
- Posts: 22187
- Joined: Fri Mar 11, 2005 7:36 pm
Re: 1411 interfaace with Arduino Due
Due is very annoying, we don't recommend it - but you should start with the i2c scanner to detect the rtc
https://learn.adafruit.com/scanning-i2c-addresses
https://learn.adafruit.com/scanning-i2c-addresses
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
The IC2 scanner did not see any devices. I put a scope on the SCL1 and then on the SDA1 pins of the Due and had a constant 3.3 Vdc and not a clock or data bits.
The previous sketch I mentioned that did have serial communications was not connected to an external device, the serial.Prints were there for debugging purposes. It would appear that signals are not making it from the ATMEL chip to the pins so I'm assuming that there is a defect in the Due board and I should replace it and will head off in that direction.
The ic2 scanner and associated words on the website were very helpful, thanks.
It seems like there is no reason to keep this ticket open any longer. Thanks for the "coaching"
The previous sketch I mentioned that did have serial communications was not connected to an external device, the serial.Prints were there for debugging purposes. It would appear that signals are not making it from the ATMEL chip to the pins so I'm assuming that there is a defect in the Due board and I should replace it and will head off in that direction.
The ic2 scanner and associated words on the website were very helpful, thanks.
It seems like there is no reason to keep this ticket open any longer. Thanks for the "coaching"
- adafruit2
- Posts: 22187
- Joined: Fri Mar 11, 2005 7:36 pm
Re: 1411 interfaace with Arduino Due
ok we stronnnngly recommend using a Mega!
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
Based on speed requirements a Mega will not work for me.
I have been able to communicate between the two devices through i2c_scanner but changing line 12 to "#define WIRE Wire1" from "#define WIRE Wire".
A problem I've identified is that the DUE has two means for serial communications; the sketch talks through SCL and SDA (pins D20 and D21) which do not connect to the data logger. SCL1 and SDA1 (pins D70 and D71) are connected to the data logger.
I have also tried modifying a sketch to start serial communications through SCL1 and SDA1. Starting with the sketch referenced at "https://learn.adafruit.com/adafruit-dat ... me-clock-3"; I change references from RTC_DS1307 RTC to RTC_PCF8523 RTC and get the attached file with a portion of errors when compiling the code.
Any recommendations for either of these issues?
Thanks
I have been able to communicate between the two devices through i2c_scanner but changing line 12 to "#define WIRE Wire1" from "#define WIRE Wire".
A problem I've identified is that the DUE has two means for serial communications; the sketch talks through SCL and SDA (pins D20 and D21) which do not connect to the data logger. SCL1 and SDA1 (pins D70 and D71) are connected to the data logger.
I have also tried modifying a sketch to start serial communications through SCL1 and SDA1. Starting with the sketch referenced at "https://learn.adafruit.com/adafruit-dat ... me-clock-3"; I change references from RTC_DS1307 RTC to RTC_PCF8523 RTC and get the attached file with a portion of errors when compiling the code.
Any recommendations for either of these issues?
Thanks
- Attachments
-
- Data-Shield_Sketch.png (60.17 KiB) Viewed 179 times
- adafruit2
- Posts: 22187
- Joined: Fri Mar 11, 2005 7:36 pm
Re: 1411 interfaace with Arduino Due
that sketch is old, you could try
https://learn.adafruit.com/adafruit-dat ... time-clock
and pass &Wire1 into the begin() funciton
https://github.com/adafruit/RTClib/blob ... 23.cpp#L20
https://learn.adafruit.com/adafruit-dat ... time-clock
and pass &Wire1 into the begin() funciton
https://github.com/adafruit/RTClib/blob ... 23.cpp#L20
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
I tried the sketch in the link and got many more error messages. Is there a reference that would help me walk through this?
Below are the error messages following a compile:
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:20: multiple definition of `RTC_PCF8523::begin(TwoWire*)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:25: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_I2C::bin2bcd(unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:40: multiple definition of `RTC_PCF8523::lostPower()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:45: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_I2C::bin2bcd(unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:51: multiple definition of `RTC_PCF8523::initialized()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:56: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::adjust(DateTime const&)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:61: multiple definition of `RTC_PCF8523::adjust(DateTime const&)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:66: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::now()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:82: multiple definition of `RTC_PCF8523::now()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:87: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::start()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:97: multiple definition of `RTC_PCF8523::start()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:102: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::stop()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:108: multiple definition of `RTC_PCF8523::stop()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:113: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::isrunning()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:119: multiple definition of `RTC_PCF8523::isrunning()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:124: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::readSqwPinMode()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:129: multiple definition of `RTC_PCF8523::readSqwPinMode()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:134: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::writeSqwPinMode(Pcf8523SqwPinMode)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:143: multiple definition of `RTC_PCF8523::writeSqwPinMode(Pcf8523SqwPinMode)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:148: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableSecondTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:152: multiple definition of `RTC_PCF8523::enableSecondTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:157: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::disableSecondTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:166: multiple definition of `RTC_PCF8523::disableSecondTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:171: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::disableCountdownTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:237: multiple definition of `RTC_PCF8523::disableCountdownTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:242: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:188: multiple definition of `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char, unsigned char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:193: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:221: multiple definition of `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:226: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::deconfigureAllTimers()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:250: multiple definition of `RTC_PCF8523::deconfigureAllTimers()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:255: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::calibrate(Pcf8523OffsetMode, signed char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:291: multiple definition of `RTC_PCF8523::calibrate(Pcf8523OffsetMode, signed char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:290: first defined here
collect2.exe: error: ld returned 1 exit status
Compilation error: exit status 1}
Below are the error messages following a compile:
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:20: multiple definition of `RTC_PCF8523::begin(TwoWire*)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:25: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_I2C::bin2bcd(unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:40: multiple definition of `RTC_PCF8523::lostPower()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:45: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_I2C::bin2bcd(unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:51: multiple definition of `RTC_PCF8523::initialized()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:56: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::adjust(DateTime const&)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:61: multiple definition of `RTC_PCF8523::adjust(DateTime const&)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:66: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::now()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:82: multiple definition of `RTC_PCF8523::now()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:87: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::start()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:97: multiple definition of `RTC_PCF8523::start()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:102: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::stop()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:108: multiple definition of `RTC_PCF8523::stop()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:113: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::isrunning()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:119: multiple definition of `RTC_PCF8523::isrunning()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:124: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::readSqwPinMode()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:129: multiple definition of `RTC_PCF8523::readSqwPinMode()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:134: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::writeSqwPinMode(Pcf8523SqwPinMode)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:143: multiple definition of `RTC_PCF8523::writeSqwPinMode(Pcf8523SqwPinMode)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:148: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableSecondTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:152: multiple definition of `RTC_PCF8523::enableSecondTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:157: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::disableSecondTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:166: multiple definition of `RTC_PCF8523::disableSecondTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:171: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::disableCountdownTimer()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:237: multiple definition of `RTC_PCF8523::disableCountdownTimer()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:242: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:188: multiple definition of `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char, unsigned char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:193: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:221: multiple definition of `RTC_PCF8523::enableCountdownTimer(PCF8523TimerClockFreq, unsigned char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:226: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::deconfigureAllTimers()':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:250: multiple definition of `RTC_PCF8523::deconfigureAllTimers()'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:255: first defined here
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\libraries\RTClib\RTC_PCF8523.cpp.o: In function `RTC_PCF8523::calibrate(Pcf8523OffsetMode, signed char)':
C:\Users\ADMIN\Documents\Arduino\libraries\RTClib\src/RTC_PCF8523.cpp:291: multiple definition of `RTC_PCF8523::calibrate(Pcf8523OffsetMode, signed char)'
C:\Users\ADMIN\AppData\Local\Temp\arduino-sketch-C0FA8B70395810BA03D85C37776E6E62\sketch\Data_Log_Due.ino.cpp.o:C:\Users\ADMIN\Documents\Arduino\Data_Log_Due/Data_Log_Due.ino:290: first defined here
collect2.exe: error: ld returned 1 exit status
Compilation error: exit status 1}
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
My error, I did not initially pick up that this was a new RTClib file and not code to be inserted in the sketch. When I replaced the RTClib file, it completed the compiling satisfactorily and lets me continue.
Thanks
Thanks
- John6414
- Posts: 9
- Joined: Sat May 14, 2022 5:40 pm
Re: 1411 interfaace with Arduino Due
In moving along on this I have another question.
In the Time stamping portion of "https://learn.adafruit.com/adafruit-dat ... me-clock-3" there is a line
now = RTC.now();
This appears to be appropriate for the DS1307 which uses the "RTC" library but the 1411 uses a PCF 8523 which is not included in the RTC library but is included in the "RTClib" which does not have a now() function. "RTClib" does have a DateTime now() function but when I change "now = RTC.now();" to "now = RTClib.DateTime now();" I get a compile error "error: 'class RTC_PCF8523' has no member named 'DateTime' now = RTClib.DateTime now();.
Can you identify what needs to be changed?
Thanks in advance
In the Time stamping portion of "https://learn.adafruit.com/adafruit-dat ... me-clock-3" there is a line
now = RTC.now();
This appears to be appropriate for the DS1307 which uses the "RTC" library but the 1411 uses a PCF 8523 which is not included in the RTC library but is included in the "RTClib" which does not have a now() function. "RTClib" does have a DateTime now() function but when I change "now = RTC.now();" to "now = RTClib.DateTime now();" I get a compile error "error: 'class RTC_PCF8523' has no member named 'DateTime' now = RTClib.DateTime now();.
Can you identify what needs to be changed?
Thanks in advance
- adafruit2
- Posts: 22187
- Joined: Fri Mar 11, 2005 7:36 pm
Re: 1411 interfaace with Arduino Due
check out the default example for the pcf - best to start with that and then adapt as necessary
https://github.com/adafruit/RTClib/blob ... cf8523.ino
https://github.com/adafruit/RTClib/blob ... cf8523.ino
Please be positive and constructive with your questions and comments.