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: How to program BQ27520-G4

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

Hi team,

please help my customer to program  BQ27520-G4:

I'm developing on board programming for their board with the device BQ27520-G4.

 

The customer sent us the attached programming file .srec.

It's seems to have the following memory area:

  • 0x00004000 - 0x000043FF
  • 0x00100000 - 0x0010FFFF

Unfortunately in the document "SLUUA35" I don't find a correlation between programming file addresses and component registers.

So I don't understand if this data needs to be programmed in the uC.

The customer seems to use that file with the TI BQ Studio tool.

 

These are the only commands I understand that are available for flash management:

 

Here below the device register I understand the uC allows to be programmed:

  • Subclass ID (access using command code 0x3E)
  • Subclass (access using command code 0x3F)
  • Offset of various register

 

 

Please can you help me understand how the file should be used and the relation between the addresses and the memory area of the uC?

  • The information required to translate an .srec file into commands for the gauge isn't published by TI. Please convert the .srec into a FlashStream file (.bq.fs) with bqStudio (load the .srec onto the EVM with bqStudio, "Programming" and then export the Golden Image in .bq.fs file format).

    The FlashStream format has the I2C write instructions for the gauge in text format. You can write a simple parser like in this app note: www.ti.com/.../slua801.pdf