This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ32000: RTC does not get initialized in the firmware properly in the first boot.

Part Number: BQ32000

If RTC battery is taken out and put back in. The RTC does not get initialized properly for the first boot up.
Similarly, on fresh new boards when RTC is on and never been initialized before we receive this error as well.

We receive the following error:

[   16.116866] bq32k 2-0068: Oscillator Failure. Check RTC battery. 

[   16.124277] bq32k 2-0068: registered as rtc0 

[   16.129645] bq32k 2-0068: hctosys: unable to read the hardware clock


Please advice on this issue.



Best Regards,
Romir

  • Hi Romir,

    A subject matter expert will get back to you by tomorrow on this. 

    Best,

    Asim

  • Hi Gunter,

    For [   16.116866] bq32k 2-0068: Oscillator Failure. Check RTC battery.

    Can you verify if the OF flag bit is being cleared after the first power up? It is expected behavior for the OF flag to be set on initial power up and chug out this error. It is on the second power up that the OF flag bit should be cleared when you initialize the RTC (setting the time). You can then monitor the bit in case there is an oscillator fail event during operation. See page 13 on BQ32000 datasheet for more information. 

    What does your design look like? If you have external tuning capacitors for the crystal, that may be the issue.

    As for being unable to read the hardware clock, I'll have to look into it. 

    Regards,

    Juan

  • So can we or can we not read the clock after the first power up? We can only not read in the first power up when bit has just been cleared. 

  • Hi Romir, 

    Lets confirm that I2C communication works. Are you able to reprogram the registers to set the time, and read back the time? 

    It may also help to check the battery voltage before powering the system on to confirm that it is within the recommended range. 

  • We use a standard linux utility hwclock to update the time (which communicates with the RTC over the i2c bus.) Once the RTC is properly initialized i.e. on the second power up we can configure the time and read it back. 

    As for the voltage I will get back to you after probing the voltage/ discussion with our HW team.

  • It may take a while before we're able to confirm the voltage. Why would voltage be an issue only on the first boot? The voltage is identical on every boot up.

  • Romir, voltage shouldn't be an issue on first boot. I realize now that the RTC is working for you after first boot therefore your voltage should be ok. When you go through full power on cycling (no vcc, no vvback) there will be no clock data stored. If the part has no default setting after power up, the data you'll see is random bits.