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.

How to put bq27520 out of ROM mode?

Other Parts Discussed in Thread: BQSTUDIO

Hi,

While programming the golden file on our custom board with bq27520 battery gauge, the board rebooted.
This has caused the fuel gauge to no longer being detected on 0x55. Instead it is being detected as 0x0B. Even after power cycling it.


After searching some documents, we came to know that it has actually entered ROM mode.


Would commenting the following lines from .bq.fs file and trying to flash again using bqtool bring us out of ROM mode?

    ;--------------------------------------------------------
    ;Unseal device
    ;--------------------------------------------------------
    W: AA 00 14 04
    W: AA 00 72 36
    W: AA 00 FF FF
    W: AA 00 FF FF
    X: 1000
    ;--------------------------------------------------------
    ;Go To ROM Mode
    ;--------------------------------------------------------
    W: AA 00 00 0F
    X: 1000


Or do we have to issue some special i2c commands? If so, can you send us those commands?

Thanks and Regards,
Anand Mistry

  • Hi Anand,

    If you are using bqstudio, after you program the device with your flashstream file click the "Execute FW" button. This should bring the device out of ROM mode.

    Best Regards,

    Ben Lough

  • Hi Ben,

    Thanks for your reply.

    Unfortunately, the device is soldered to our custom board and t would be very hard for us to connect it to the EV2300.

    Can you suggest some on-board way?

    I have two solutions in my mind.

    1. I execute the i2c commands corresponding to the "Execute FW" command. But i fear that this may be dangerous since the device was partially-programmed before board rebooted.

    2. The solution I described in my original post. Since i've commented only the first portion that sets the device in the ROM mode, it should work. Only doubt is if the device is partially-programmed, it is safe to start-over.

    Thanks and Regards,

    Anand Mistry