It sounds like there may be problems with your design - shorts etc. - but I'm going focus on the software configuration. If you've copied the CM4IO wiring for the RTC then you've unfortunately also connected it to I2C0 (hence "SCL0" and "SDA0"). On the CM4 side these signalss are wired to GPIOs 44 & 45, also known as i2c_csi_dsi. This is a non-standard configuration, but the i2c-rtc overlay has a parameter to make it work.
From your list of attempts at a working config.txt I think the first was closest - it should have worked, but the "dtparam=uart0" is unnecessary because the i2c-rtc overlay will take care of that. All you should need is:With that in place (and nothing else i2c-related), what do the following commands return?
From your list of attempts at a working config.txt I think the first was closest - it should have worked, but the "dtparam=uart0" is unnecessary because the i2c-rtc overlay will take care of that. All you should need is:
Code:
dtoverlay=i2c-rtc,ds3231,i2c_csi_dsi
Code:
i2cdetect -li2cdetect -y 10
Statistics: Posted by PhilE — Tue Jul 09, 2024 8:31 am