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.

Issue on updating gauging parameter w/ bq27621

Hi~ this is Morgan Park from one of your Korea Disty.

I got an issue on Updating the Gauge Configuration Parameters.
One of our customer tried to change configuration but it's pending now.
We found something to be casue this issue as below.


1. SubclassID in Quick start guide and Technical reference doc are different

  - Quick start guide page4. figure1 : OLD_DC[2] = I2CReadBlock(0x4A, 2, 100)

  - Technical reference page12. section3.1, step8 : rd 0x43 OLD_DesCap_MSB; rd 0x44 OLD_DesCap_LSB;

2. New Checksums are different

  - Technical reference page12. section3, step 11 : left side(0x1F), right side(0x58)


Actually both I and our customer are checked(computing) 0x58 is right as below.

-----------------------------------------------------
OLD_Csum = 0x8A

OLD_DesCap_MSB = 0x04

OLD_DesCap_LSB = 0xB0

temp = mod(255 - 0x8A - 0x04 - 0xB0, 256) = 0xF3
 
NEW_Csum = 255 - mod(243 + 0x04 + 0xB0, 256) = 0x58

NEW_Csum  = 0x58
-----------------------------------------------------

And then customer applied another parameter value they're ganna use in same way. But it didn't work too.

And now soft_reset(step12) does't work.

Please explain why SubclassIDs are different and what "0x1F" means.

There's no additional docs in website and TIK now.

I hope your detail answers soon.

Thanks.

  • Hello Morgan,

    Please use offset 0x43 for design capacity. It has a size of 2, so the locations would be 0x43 and 0x44. I will make a note to make a revision on the QSG.

    Do you have any delays between each command?

    You will also need to enable the write for the parameter.

    Please follow the flow chart detailed in the TRM: www.ti.com/.../sluuad4c.pdf

    Section 3.1 documents the correct procedure with the correct offsets.

    Please wait at least 1100 milliseconds after sending CFG_Update before initiating the write.

    You  will need a 5 millisecond delay time after writing the checksum as well. Address 0x60.

  • HI~

    Thanks for quick reply.

    And regarding Checksum... which one is right? 0x58 or 0x1F?

    Please explain and send me a related docs.

    If you are ok, I'm sending you email with file I got from my customer.

    Thanks

    Morgan