Unable to get ExternalRealClock working (DS3231)

I have been trying multiple directions from the net and BB Board, but can not get clock working.
Main problem: Not detecting the Clock
Using Debian XFCE 11
I followed the last directions by AdaFruit, starting with
Wiring is simple:
1. Connect VCC on the breakout board to the P9_5 (VCC 5V) or P9_7 (SYS 5V) pin on the BBB. NOTE: The P9_5 VCC 5V pin will only be powered if a 5V adapter is plugged in to the barrel jack. If powering over USB use the P9_7 (SYS 5V) pin instead!
2. Connect GND on the breakout board to the P9_1 (GND) pin on the BBB
3. Connect SDA on the breakout board to the P9_20 pin of the BBB
4. Connect SCL on the breakout board to the P9_19 pin of the BBB

Verify your wiring by running i2cdetect -y -r 1 at the command line, you should see ID 68 show up - that’s the address of the DS1307! For the DS3231 it should be same

Connections are correct, and clock does work on 2 of my RPi’s (tried the same clock as using on BBB).
Also tried i2cdetect with 0 (which gives a 34 result) and 2, which gives no result, not even UU

Hi @rfeyer please run:

sudo beagle-version

Regards,

Here it is:

eeprom:[A335BNLT00C02203SBB14054]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Bullseye Xfce Image 2023-05-03]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
kernel:[5.10.168-ti-r62]
nodejs:[v12.22.12]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20230530.0-0~bullseye+20230530]
pkg:[bb-usb-gadgets]:[1.20230414.0-0~bullseye+20230414]
pkg:[bb-wl18xx-firmware]:[1.20230414.0-0~bullseye+20230414]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input render bluetooth netdev i2c gpio admin tisdk weston-launch cloud9ide]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[    9.190286] remoteproc remoteproc0: wkup_m3 is available
[   43.887419] remoteproc remoteproc0: powering up wkup_m3
[   43.887457] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[   43.887755] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   92.377851] remoteproc remoteproc1: 4a334000.pru is available
[   92.461992] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   92.377851] remoteproc remoteproc1: 4a334000.pru is available
[   92.461992] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    8.772312] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[    8.773879] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[    8.773913] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    9.392866] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    9.393077] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    9.393286] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    9.393465] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    9.393918] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    9.394116] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    9.394294] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    9.394467] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    9.394644] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    9.394937] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    9.395227] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[    9.395415] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[    9.395610] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[    9.395784] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[    9.395959] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[    9.396152] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[    9.396313] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[    9.396502] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[    9.396682] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[    9.396849] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[    9.397038] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[    9.397214] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[    9.397379] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[    9.397558] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[    9.397727] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[    9.397904] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[    9.398084] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[    9.398259] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[    9.398456] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[    9.398636] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[    9.398922] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[    9.399108] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[    9.399278] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[    9.399453] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[    9.399621] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[    9.399808] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[    9.399981] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[    9.400140] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[    9.400342] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[    9.400507] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[    9.400685] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[    9.400856] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[    9.401037] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[    9.401209] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[    9.401388] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[    9.401561] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[    9.401745] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[    9.401923] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[    9.402100] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[    9.402283] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[    9.402453] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[    9.402631] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[    9.402897] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[    9.403085] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[    9.403262] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[    9.403427] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[    9.403621] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[    9.403787] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[    9.404282] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[    9.404520] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[    9.404699] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[    9.404885] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[    9.405064] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[    9.405231] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[    9.405412] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[    9.405600] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[    9.405784] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[    9.405960] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[    9.406126] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[    9.406136] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 004: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Thanks, i’d load this overlay:

in /boot/uEnv.txt add:

uboot_overlay_addr4=BB-I2C1-RTC-DS3231.dtbo

Then rewire…
SDA → P9_17
SCL → P9_18

Regards,

TY much, I will ry it!

still no detection by i2cdetect. I did change Data and Clock leads to P9-17 and 18
This is a direct copy of what I entered into /boot/uEnv.txt: uboot_overlay_addr4=BB-I2C1-RTC-DS3231.dtbo

This is a re-run of beagle-version:

model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Bullseye Xfce Image 2023-05-03]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
UBOOT: Loaded Overlay:[BB-I2C1-RTC-DS3231.kernel]
kernel:[5.10.168-ti-r62]
nodejs:[v12.22.12]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
uboot_overlay_options:[uboot_overlay_addr4=BB-I2C1-RTC-DS3231.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20230530.0-0~bullseye+20230530]
pkg:[bb-usb-gadgets]:[1.20230414.0-0~bullseye+20230414]
pkg:[bb-wl18xx-firmware]:[1.20230414.0-0~bullseye+20230414]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input render bluetooth netdev i2c gpio admin tisdk weston-launch cloud9ide]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[    9.070430] remoteproc remoteproc0: wkup_m3 is available
[   45.763509] remoteproc remoteproc0: powering up wkup_m3
[   45.763548] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[   45.763868] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   90.554828] remoteproc remoteproc1: 4a334000.pru is available
[   90.601436] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   90.554828] remoteproc remoteproc1: 4a334000.pru is available
[   90.601436] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    8.664042] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[    8.665565] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[    8.665597] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    9.299337] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    9.299585] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    9.299771] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    9.299934] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    9.300328] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    9.300524] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    9.300692] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    9.300870] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    9.301034] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    9.301212] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    9.301495] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[    9.301670] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[    9.301854] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[    9.302018] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[    9.302218] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[    9.302401] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[    9.302563] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[    9.302901] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[    9.303104] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[    9.303296] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[    9.303473] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[    9.303634] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[    9.303806] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[    9.303985] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[    9.304157] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[    9.304336] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[    9.304527] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[    9.304705] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[    9.304890] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[    9.305056] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[    9.305243] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[    9.305407] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[    9.305584] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[    9.305767] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[    9.305932] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[    9.306108] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[    9.306268] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[    9.306467] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[    9.306728] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[    9.306912] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[    9.307095] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[    9.307273] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[    9.307445] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[    9.307617] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[    9.307793] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[    9.307978] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[    9.308161] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[    9.308352] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[    9.308530] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[    9.308694] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[    9.308875] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[    9.309052] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[    9.309220] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[    9.309400] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[    9.309560] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[    9.309747] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[    9.309954] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[    9.310122] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[    9.310730] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[    9.310968] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[    9.311144] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[    9.311329] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[    9.311506] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[    9.311686] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[    9.311863] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[    9.312058] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[    9.312244] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[    9.312410] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[    9.312584] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[    9.312595] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 004: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Looks fine, now run:

dmesg | grep rtc

Should see two devices… your DS3231 is now being used…

Regards,

Here it is:
~$ dmesg | grep rtc
[ 9.024680] omap_rtc 44e3e000.rtc: already running
[ 9.026159] omap_rtc 44e3e000.rtc: registered as rtc1
[ 9.286960] rtc-ds1307: probe of 1-0068 failed with error -121
[ 82.516226] PM: rtc0 not available
[ 83.107212] PM: rtc0 not available
[ 83.753035] PM: rtc0 not available
[ 90.876798] PM: rtc0 not available
[ 91.292564] PM: rtc0 not available
[ 91.310178] PM: rtc0 not available

What voltage is the rtc board running at?

Looks like you are connecting it to 5V.
Does it have pull up resistors on the i2c lines?
If they are pulled up to 5v you are likely to damage the BBB.
If the rtc board has a 3.3v regulator and this is powering it and the pull-ups then it would be ok.

If there are no pull up resistors you will need to add some to make it work.

Hi
I do have it on a 5V power supply.
The Clock has it’s built in pull-ups, They are 432 micro-resistors; (4.3k I believe that means)

Yeah, use 3v3, the ds3231 supports 2.3v → 5.5v… BBB uses 3.3v…

Easy to grab on P9:

Regards,

TY for suggestion. I still have nothing on i2cdetect bank 0 or 1 or 2 (well, bank 0 has a 4030 but I don’t know what that is)
Rainer

I’d say, time to scope the bus, what ds3231 did you purchase? (i’d like to look at the pcb)…

best test is still:

dmesg | grep rtc

Regards,

BTW, since I have several of these clocks, I tried another one and same results

this is the dmesg:
~$ dmesg | grep rtc
[ 9.024742] omap_rtc 44e3e000.rtc: already running
[ 9.026210] omap_rtc 44e3e000.rtc: registered as rtc1
[ 9.286998] rtc-ds1307: probe of 1-0068 failed with error -121
[ 81.394961] PM: rtc0 not available
[ 81.973216] PM: rtc0 not available
[ 82.833593] PM: rtc0 not available
[ 89.837753] PM: rtc0 not available
[ 90.480691] PM: rtc0 not available
[ 90.512536] PM: rtc0 not available

the 3231 I purchased is: HiLetgo 5pcs DS3231 High Precision RTC Real Time Clock Module 3.3V/5V for Arduino Raspberry Pi from Amazon. Not sure if I can put the link here?

This one? https://www.amazon.com/HiLetgo-DS3231-Precision-Arduino-Raspberry/dp/B01N1LZSK3

and just for clarity, i would first try:

If that doesn’t work, swap SDA and SCL…

Regards,

Yup, the link you have is correct.
And, the wiring you have noted is what I currently am doing, but I can swap Data for Clock Timer
Update: Just swapped D for C - and it worked! i2cdetect now has it listed as 68! You are genius? Why would you have thought of that? On the RPi’s, I have it exactly as you got it on picture.
I will see if I can get it working, then I will go on to BME280 Temp/Hum?pres sensor. If I can et that working, I am good to go on converting my Projects! I will need to convert several for several other BBB’s,
TY! AGAIN!

Just rebooted system after setting correct time and date with date --set … and now the clock is again not recognized.
with i2cdetect -y -r 1, it gives a value of UU where the 68 should be.

~$ dmesg | grep rtc
[ 9.028770] omap_rtc 44e3e000.rtc: already running
[ 9.030259] omap_rtc 44e3e000.rtc: registered as rtc1
[ 9.294181] rtc-ds1307 1-0068: registered as rtc0
[ 9.295280] rtc-ds1307 1-0068: setting system clock to 2023-06-16T23:39:24 UTC (1686958764)
[ 82.433213] PM: bootloader does not support rtc-only!

1 Like

What you see is correct, ‘UU’ means the kernel has control of it.

We do an alias swap in the overlay, so you can see the ‘built-in’ 44e3e000.rtc is now set as rtc1, and the rtc-ds1307 is set as rtc0.

&{/} {
	aliases {
		rtc0 = &extrtc;
		/* find /sys/firmware/devicetree/ | grep rtc@ */
		rtc1 = "/ocp/interconnect@44c00000/segment@200000/target-module@3e000/rtc@0";
	};
};

So systemd/system will store the correct time on rtc0 (which is rtc-ds1307)…

Other than making sure you load the overlay, and your rtc has a good backup battery, the system will correctly utilize your rtc-ds1307 device as the main rtc of the system.

No other random time setting scripts required…

Regards,

1 Like

It does work!!! I booted down, disconnected power for 1/2 hour and on reboot time was still correct!
TY Tons again!!! It is a DS-3121, not ds1307, but it does not seem to make a difference.

Again, TY!