thierer / sd2iec

Cloned from https://www.sd2iec.de
GNU General Public License v2.0
12 stars 5 forks source link

DS1307 RTC Not working + how to build this in 2024? #7

Closed hjf closed 3 months ago

hjf commented 3 months ago

I'm using a uIEC 3.2, which has the footprints for a DS1307Z and supporting components. I've transplanted these from a cheap arduino module, but when trying to use it, it doesn't seem to be working.

When checking the configuration for uIEC3, i see it has no option for CONFIG_RTC_DSRTC so I assume it's the reason the hardware RTC isn't working.

I tried building this but it fails. The docs mention this needs avr-libc version 1.6.x, so I downloaded an ancient version of Debian (Wheezy) which has gcc-avr 4.3 and avr-libc 1.6.8, but this still fails build (with a different error)

Does this project still require those versions of AVR or is the documentation out of sync?

Will enabling CONFIG_RTC_DSRTC make the DS1307Z work with my hardware?

Thanks!

hjf commented 3 months ago

Answering to myself, it builds fine in modern debian. I was getting unrelated errors.

The RTC option was not enough. I also had to define softi2c pins.