Part Number: BQ32000
Hello,
I would like to use the BQ32000 with a Raspberry Pi 3 Model B (Raspbian Buster).
I put everything together and the I2C communication seems to be ok, but it is not possible to read the time from the chip.
I get the following message when loading the module:
bq32k 1-0068: Oscillator Failure. Check RTC battery.
bq32k 1-0068: Enabled trickle RTC battery charge.
bq32k 1-0068: rtc core: registered bq32k as rtc0
I already tested a new chip and another crystal with the same issue.
I use the following crystal:
ABS07L-32.768KHZ-T
abracon.com/.../ABS07L.pdf
www.digikey.com/.../3915230
Do you have any idea what’s going wrong?
pi@raspberrypi:~ $ sudo hwclock -D -w --verbose
hwclock: use --verbose, --debug has been deprecated.
hwclock from util-linux 2.33.1
System Time: 1569685463.067748
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1569685156 seconds after 1969
Last calibration done at 1569685156 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
RTC type: 'bq32k'
Using delay: 0.000000 seconds
missed it - 1569685463.082688 is too far past 1569685463.000000 (0.082688 > 0.001000)
1569685464.000000 is close enough to 1569685464.000000 (0.000000 < 0.002000)
Set RTC to 1569685464 (1569685463 + 1; refsystime = 1569685463.000000)
Setting Hardware Clock to 15:44:24 = 1569685464 seconds since 1969
ioctl(RTC_SET_TIME) was successful.
Not adjusting drift factor because the --update-drift option was not used.
New /etc/adjtime data:
0.000000 1569685463 0.000000
1569685463
UTC
pi@raspberrypi:~ $ sudo hwclock -D -r --verbose
hwclock: use --verbose, --debug has been deprecated.
hwclock from util-linux 2.33.1
System Time: 1569685173.482154
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1569685156 seconds after 1969
Last calibration done at 1569685156 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
ioctl(3, RTC_UIE_ON, 0): Invalid argument
Waiting in loop for time from /dev/rtc0 to change
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument
...synchronization failed
Kind regards,
Denny