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.

BQ27510-G3: Flash the golden image/file to the bq27510 from Linux/Android using I2C

Part Number: BQ27510-G3
Other Parts Discussed in Thread: BQ27510, BQSTUDIO

Hi,

We have an Android platform connected with BQ27510-G3 using I2C.

I would like to know how to flash the golden image to the chip from Linux through I2C bus.

Does TI have any utility or tool to compile using gcc and access the chip through I2C and flash the golden image into the chip?

Is it possible to get that, if you have one?

Thanks,

Sangili

  • Hi Sangili,

    There is a Linux driver, please refer to the application report below.

    www.ti.com/.../slua543.pdf

    Best Regards,

    Abraham

  • Thanks for your response.

    Its looks like how to access the fuel gauge to read the batter details such as capacity, charge, temperature.

    To read those data we have a driver in Linux Kernel: drivers/power_supply/bq27xxx_xxx.c we are using that to access the fuel gauge to read the data.

    However, my question is different. The hardware team calibrating the fuel gauge using TI's BQ Tool/Studio and then they will generate the calibration file to load into every fuel gauge device.

    I am looking for the tool/utility which will run on Linux to read the golden/calibration file from the file system and flash that file into the bq27510 device.

    I hope it clear now.

    Thanks,

    Sangili

  • Hi Sangili,

    We don't have a Linux tool, you have to set up your own. This app note  might be helpful:

    Best Regards,

    Abraham

  • Hi,

    I have created a tool using this app note.

    Its looks like it's flashing the *.bq.fs and *.df.fs file into the fuel gauge.

    However, after flashing fuel gauge is not coming out of ROM mode even manually try to exit ROM mode.

    mini:/data # i2cset -y 2 0x0b 0x00 0x0f
    mini:/data # i2cset -y 2 0x0b 0x64 0x0f
    mini:/data # i2cset -y 2 0x0b 0x65 0x00

    mini:/data # i2cdetect -y 2
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- 0b -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    I have tried SOFT REST aswell but nothing work

    mini:/data # i2cset -y 2 0x0b 0x00 0x0041 w

    Could you please help me with how to exit from the ROM code?

    However, I can enter and exit from ROM mode manually if I am not flashing the xxx.bq.fs. What would be the issue if i flash the bq.fs and exit from ROM mode?

    Thanks,

    Sangili

  • Hello Sangili,

    If you flash the gauge with bqStudio after it won't exit ROM mode will it return to normal operation?

    Can you send the sequence you use to manually take it out of ROM mode? There are other E2E threads for how to manually get out of ROM mode, the sequence is also at the end of the bq.fs file.

    Sincerely,

    Wyatt Keller