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.

BQ27427: The initialization sequence after reset

Part Number: BQ27427

Tool/software:

Hello,

We are using the BQ27427 device with Zephyr firmware. The software driver modifies some parameters using the procedure described in section 4.1 (Data Memory Parameter Update Example) of the BQ27427 Technical Reference Manual. This is working fine, however, sometimes our board resets soon after start, so the firmware repeats the initialization sequence. In this case, we observe that the BQ27427 device cannot enter the CONFIG UPDATE mode (bit 4 of the Flags() register is not set). In other words, the BQ27427 device cannot enter the CONFIG UPDATE mode just after it exited the CONFIG UPDATE mode.

Is this a known behavior? Can you recommend how to avoid this error? We tried to wait for about 10 seconds after exiting the CONFIG UPDATE mode but this didn't help to enter the CONFIG UPDATE mode again.

Best regards,

Vadim

  • Hello,

    This trend has been assigned and will be reviewed when possible. In the meantime can you attach any .gg and/or .log associated with the project.

    Thank you,
    Alan 

  • Do you seal the gauge during the first initialization sequence? The gauge will not process the config update mode command if the gauge is sealed.

    What's ControlStatus()? Is SS set?

    Also, the gauge should only be configured once after the gauge itself is power cycled or reset (ITPOR = 1). Please check this ITPOR bit during system boot. If this is 0 (and the previous configuration was correct), then it's usually a mistake to re-initialize the gauge because this will reset everything that the algorithm learned over time.