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.

BQ27532-G1: Regarding verification when writing with BQSTUDIO.

Part Number: BQ27532-G1
Other Parts Discussed in Thread: BQSTUDIO, , EV2400

Tool/software:

Hi TI Team,

I am using EV2400 and BQSTUDIO 1.3.125 to write a Golden-image to bq27532-g1.

The current version of BQSTUDIO does not have a UI to select whether or not to verify (CRC Check sum, etc).

What kind of verification does BQSTUDIO actually perform internally when writing?

Please explain in as much detail as possible.

Regards,
Hitoshi

  • Hi Hitoshi,

    Bqstudio uses a write/read/compare method. Reading and writing data memory follows this sequence: 1. Write the subclass number to the subclass command (0x3E). 2. Write the data block number to the data block command (0x3F). 3. Read or write the data block (up to 32 bytes) starting at block data command (0x40). 4. (Write only): Calculate the check sum and write it to the check sum command (0x60).

    The checksum can be calculated by taking the least significant byte of the bitwise NOT of the sum of the address bytes and the data bytes

    Checksum = 0xFFFF - (0xE5 + 0x45 + 0x09 + 0xC4) = 0xFFFF – 0x1F7 = 0xFE08 = 0x08

    Thanks,

    Adam

  • Hi Adam,

    Thanks. I understood the details of VERIFY in BQSTUDIO.

    In version 1.3.214 and 1.3.215, you cannot explicitly select VERIFY when writing, but when writing a golden image, the above checksum verification is performed automatically, right?

    Regards,

    Hitoshi

  • Hi Hitoshi

    It depends how you are using the gauge. For advanced comms, you have to verify the checksum yourself. For other commands, the checksum verification is automatically performed.

    Thanks,

    Adam

  • Hi Adam,

    OK. I understand that checksums are not done automatically when working in "Advanced Comm" tab.

    When writing golden images (.srec or .bq.fs) to Gauge in the "Programming" tab, checksums are done automatically, right?

    Regards,
    Hitoshi

  • Hi Hitoshi,

    Yes, when writing golden images to the gauge under "Programming" tab, checksums are automatically automatically calculated and verified.

    Thanks,

    Adam

  • Hi Adam,

    Thanks to you, I now understand in which cases BQSTUDIO's VERIFY(calc checksums) is automatically executed. I'm glad that it is executed when writing Golden-image.

    Regards,

    Hitoahi