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: Programming image file to bq27520 without error

Part Number: BQ27520-G4

When we program the image file (.srec) to the bq27520 using Battery Management Studio (BMS), the screen shows "Operation executed successfully" when the programming is completed. Is there any checksum done by BMS to ensure each register written to the Flash is correct? 

Rgds

Danz 

  • Hello,

    There is a checksum that is completed when the golden image is created and when programmed that will display an error if not done correctly.

    Can you tell me if you are seeing an error regarding this when you are creating or programming the golden image?

    Regards,

    Anthony Baldino

  • Hi Anthony,

    Thanks for your reply.

    I encountered a case where after flash programming, the FCC value in the Flash is not the same with the value in the golden file.

    I think the screen showed "Operation executed successfully" after programming. I am not sure. 

    Does BMS calculate the checksum after writing into the Flash and then compare with the Checksum value in the image file (.srec)?

    Thank you.

    Rgds

    Danz

  • Hello,

    Can you tell me which FCC value in the flash you are referencing?

    The Full Charge Capacity is a value that is calculated by the gauge that is typically not a part of the .srec file.

    Regards,

    Anthony Baldino

  • Hi Anthony,

    Understand now. 

    Btw, after writing the image to the Flash, will BMS read back the data written to the flash and do a checksum calculation to verify the flashing is good?

    Rgds

    Danz 

  • Hi Danz,

    Within the .srec file, there are two bits at the end of each line that are used for a check sum calculation. During the programming of the .srec, each time a parameter is written, there is a check sum calculation that occurs to confirm that the value has been written correctly.

    Regards,

    Anthony Baldino

  • Hi Anthony,

    Thanks for the info.

    Rgds

    Danz