Failed to Read RTC Data with ATmega2560 and Zephyr OS: Integration Issue
Hey guys, so I've been trying to integrate an RTC module with an ATmega2560 and Zephyr OS for time-stamped data logging, and resolve the issue of failing to read from the RTC? I have tried connecting the RTC module via I2C and implementing RTC read and write operations, despite that, I've been encountering the error "Failed to read from RTC."
Here's the code:
If the implementation is successful, the output should log a message indicating that the RTC data has been read successfully.
Solution:Jump to solution
You may need to enable the RTC clock, look at register 0x00 bit 7 should be a CH value.
4 Replies
DS1307?
Solution
You may need to enable the RTC clock, look at register 0x00 bit 7 should be a CH value.
yeah thanks it worked @ZacckOsiemo
amazing!