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.

BQ27520-G4: read abnormal battery level(SoC(%)) - invaild data loaded out of 0~100% max range

Part Number: BQ27520-G4
Other Parts Discussed in Thread: BQSTUDIO, EV2400

Hello,

I'm beginner for fuel guage, and willing to use TI's BQ27520-G4.

The issue is same as the title of this thread, and below is my questions.

(the abnormal data is read before apply TI battery parameter, and also same phenomenon after apply TI battery parameter.)

Q1. when I read Control() Subcommands, FW_VERSION value is different from the BQ27520-G4 datasheet.

Bq27520-G4 datasheet FW_VERSION = 0X0329

Defective chip FW_VERSION = 0x324

---------- Control( ) Subcommands Register dump ------------

[0x00] = 0x6285 ;SUBCMD_CONTROL_STATUS

[0x01] = 0x0520 ;SUBCMD_DEVICE_TYPE

[0x02] = 0x0324 ;SUBCMD_FW_VERSION

[0x07] = 0x0002 ;SUBCMD_PREV_MACWRITE

[0x08] = 0x0dd0 ;SUBCMD_CHEM_ID

[0x0c] = 0x0000 ;SUBCMD_OCV_CMD

[0x0d] = 0x0000 ;SUBCMD_BAT_INSERT

[0x0e] = 0x0000 ;SUBCMD_BAT_REMOVE

[0x11] = 0x0000 ;SUBCMD_SET_HIBERNATE

[0x12] = 0x0000 ;SUBCMD_CLEAR_HIBERNATE

[0x13] = 0x0000 ;SUBCMD_SET_SNOOZE

[0x14] = 0x0000 ;SUBCMD_CLEAR_SNOOZE

[0x1f] = 0x0000 ;SUBCMD_DF_VERSION

[0x20] = 0x0000 ;SUBCMD_SEALED

[0x21] = 0x0000 ;SUBCMD_IT_ENABLE

[0x41] = 0x0000 ;SUBCMD_RESET

 

Q2. Should I flash whole gg_out file?

At first, I do flash on only the parameters which specified at Datasheet - Table 4. Key Data Flash Parameters for Configuration.

If there's any other essential parameter at development state, please let me know.

thanks,

TS

  • hello TS.
    pls update your chip to the latest firmware found in this link.
    www.ti.com/.../sluc411 this is the 3.29 firmware

    After you have obtained your golden file (You will need to identify your chem id, and then carry out a learning cycle before extracting the golden file), bqstudio allows you to extract an srec, bqfs or dffs file using the golden image tab. You can program your devices using these files. The srec and bqfs contains the instruction and data flash contents of the gauge, while the dffs only contains the data flash contents of the gauge. All you actually need is just the data flash content, but if you have multiple chips with older fimwares, you will want to use the bqfs to program both the IF and DF

    I hope this helps. Let me know if you have further questions.

    thanks
    Onyx
  • hello Onyx.
    thanks for your kind answer.

    I think bqstudio is software for TI EVM, but we are not currently using TI EVM.
    It is assembled in Phone form,.
    If I need to update the F / W with Bqstudio, I have to run all the EV2300 in dozens of samples
    I think F / W update using Bqstudio is a way to use EVM.

    Does the TI Driver contain code for F / W update?
    www.ti.com/.../sluua35.pdf
    And, is the above link a technical report that includes F / W update method?
    Please check if you have any other materials or guides.

    thanks,
    TS
  • Hi TS.

    You do not need to update all your devices with bqstudio and bqstudio is not just a tool for the EVM. You can connect your boards to bqstudio if you have an ev2300 or ev2400.

    bqstudio will allow you extract a flash stream file, either bqfs or dffs. With the help of either of  these files you will be able to program multiple devices using your host controller and not bqstudio.  See app note attached that describes the flashstream format and app note on programming the gauge.

    0741.slua541.pdf

    thanks

    Onyx

  • Hello Onyx,

    Because the EV2300 / EV2400 interface boards can also be wired using the I2C line,
    It seems that this is not the right way to proceed in the assembled set state.

    I have reviewed the document attached to the firmware flash on the host (phone set).

    I received the latest firmware version via sluc411 link, but I need additional update tool to convert the file.

    The downloaded firmware is a .senc file. It should be converted to bqfs, dffs, and it will be possible to program without using bqstudio.

    In this regard, please refer to your attached file 0741.slua541.pdf - page5, and the corresponding firmware file will be attached for reference (Attached file: sluc411.zip)

    sluc411.zip

    [Request]

    1. Update tool "FlashStream.exe" support.

    And I have additional questions.

    Q. In the mass production stage, is the battery parameter already set in the fuel gauge IC with the flash parameter already assembled and supplied?

    thanks,

    TS

  • You need to be able to connect one of your boards to bqstudio using an ev2300 to be able to extract a bqfs or dffs. then you will use this file for mass production using your controller to program multiple boards.

    The answer to your question on the parameter is no, the IC does not come pre-programmed with the customer settings. The customer has to configure the gauge for their application and then extract a golden file which will now be flashed on multiple devices using your controller.

    You do not need the flashstream.exe any more to generate flashstream files. Bqstudio does that for you, but you will need to be able to connect one of your boards to bqstudio to be able to extract a golden file after learning has been completed.

    thanks
    Onyx