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 Checksum issue while changing the battery capacity

Other Parts Discussed in Thread: BQ27510, BQ27510-G3, BQSTUDIO, EV2400, BQ27510EVM

Hi,

I fail to update the design capacity to 1800 (0x0708), can you ensure my step is correct? I done a read after i write new capacity and it report 0x07 0x08, which means my capacity changed successfully, but I guess I am facing some issue on calculating the checksum, can anyone help to advise me on the calculation? 

 Here is the steps I use to make the changes:

1. (WR 0x00 0x14 0x04)  - unseal

2. (WR 0x00 0x72 0x36)  - unseal

3. (WR 0x00 0xFF 0xFF)  - full access

4. (WR 0x00 0xFF 0xFF)  - full access

5. (WR 0x61 0x00) - enable block data flash control            

6. (WR 0x3E 0x30) - design cap sub-class id is 48(0x30)

7. (WR 0x3F 0x00) - design cap (0ffset = 10)

8. (RD 0x60) read old checksum (old checksum = 0x64)

9. (RD 0x4A) read old design cap (MSB = 0x03)

10. (RD 0x4B) read old design cap (LSB = 0xE8)   

11. (WR 0x4A 0x07) write new design cap (MSB = 0x07)

12. (WR 0x4B 0x08) write new design cap (LSB = 0x08)

13. (WR 0x60 new checksum) write new checksum (new checksum = 0x40, formula provided by datasheet)

**fail to write new checksum to bq27510, process stop

14. (WR 0x00 0x41 0x00) reset gauge

15. (WR 0x00 0x20 0x00) seal 

Thanks,

  • Hi Wang,

    Pls refer to the app note in the link below as well as the pdf attachement.

    2313.subclass_read_instruction_new.pdf

  • Hi Onyx,

    Thanks for the info!!

    I  able to successfully update the new design capacity.

    But, once i power off and on again, the design capacity returned to the default value. As i know, it need to execute the learning cycle.

    The learning cycle take a very long time.

    I cant afford to do the learning cycle for each BQ27510-G3 ICs. Is the any way to do it once and flash the image to the remaining ICs?

    If there is a way to extract the file, do i need the TI's BQ Evaluation software or any 3rd party software? 

    In order to run the learning cycle, it needed I2C communication and TI's BQ Evaluation software.

    Currently our side is using the UART communication and 3rd party software platform to program the BQ27510-G3 instead of the BQ Evaluation software.

    Please advice.

    Thanks,

    BR,

    Jason

  • Hi Jason,

    The design capacity is not supposed to return to the default value given that this is a flash based gauge and not a ROM gauge. You are likely doing something incorrect. The best approach for evaluation will be to use bqstudio and i2c communication to configure all the necessary settings, carry out your learning cycle and once that is done, extract a bqfs or dffs or srec file which will be used to flash multiple devices. You do not need to run the learning cycle on multiple chips, just only on one while the rest will be flashed with your golden image extracted from that chip that you ran the learning cycle on. bqstudio allows to extract all these types of files depending on which one you want to use.

    let me know if any aspect of the process needs clarification.

    thanks

    Onyx

  • Hi Onyx

    Thanks for the info!!

    Beside using this bqstudio and I2C communication for this flashing and golden file extraction purpose, is there any other method to do so?

    Currently our side the PCB (printed circuit board) already been fabricated out. But we didn't provide the external I2C connection to interface with the EV2400.
    Previously we didn't know it needed to run this learning cycle.

    But in our circuit, we do have I2C communication with the MCU for BQ27510-G3.
    Can we do the flashing and learning cycle (golden image) through MCU. We do have MCU external debugger connection.

    TI FAE do suggest us to externally flash the golden image to the BQ27510-G3 first before running auto mounting process during Mass Production.
    May i ask is there any IDE available at TI for us to place the BQ27510 for programming using EV2400.
    (like an external socket placement for BQ27510-G3 flashing purpose??)

    Thanks,
    BR,
    Jason
  • Hi jason,

    You certainly can flash the chip using your host controller. What you need to do is , configure the gg.csv file for your application (a gg.csv file can be extracted from a bq27510evm and bqstudio), program the gg.csv file on the evm, program your chem id on the evm,  perform the learning cycle using your battery and the EVM and then extract a dffs. You will now flash multiple devices using your host and this dffs file.

    Attached is app note that describes what to do when programming using your host and a flashstream file (dffs).

    slua541.pdf

    Flash Stream File Format.pdf

    thanks

    Onyx

  • Hi Onyx,

    For the BQstudio, can you please send the the instruction on how to perform the learning cycle?

    I cant find any interface at the bqstudio that is used to perform the learning cycle.

    Thanks,

    BR,

    Jason

  • Hi Jason,

    Sorry for the delayed response to this, I have been out of office for the holidays. see attached app note on how to carry out the learning cycle process.  bqstudio does not have a plug in that guide you through the process, so you have to do it following the process in the attached files. it is a fairly straightforward process.

    learning cycle.zip