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.

BQ27621-G1: Strange data from Subclass ID 82

Part Number: BQ27621-G1

Hello,

Before the Initialization of the device, I try to read the default values of the subcluss id 82 (0x52)

My algorithm:

1. Unseal the device (send 0x80008000)

2. Get block data access by writing 0 to address 0x61

3. Get data class access, by writing 82 (0x52) to address 0x3E

4. Get access to the first 32 bytes block, by writing 0 to address 0x3F

5. Read 32 bytes from the address 82 (0x52) (82 + offset 0)

I got:

 - 0xE8 0x01 0x00 0xC8 0x10 0x04 0x00 0x0A
 - 0x10 0x01 0x77 0xCE 0xFF 0xCE 0x67 0x00
 - 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
 - 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF

6. Get access to the second 32 bytes block, by writing 1 to address 0x3F

7. Read 32 bytes from the address 114 (0x72) (82 + offset 32)

I got:

 - 0x01 0x02 0xBC 0x12 0x02 0x00 0x00 0x00
 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
 - 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x2C

As I can see, all the values looks wrong. By the way, the default chemID should be with the offset 36, but it's with the offset 35.

Where am I wrong?

Thank you for you help!

  • I got a right answer! :))

    Point 5 and 7 are incorrect!!!

    Each time, I was need to read (to write too) the addresses from 0x40 to 0x5F (BlockData() from the Tech Reference sluuad4c)!

    So, it's a right sequence:

    1. Unseal the device (send 0x80008000)

    2. Get block data access by writing 0 to address 0x61

    3. Get data class access, by writing 82 (0x52) to address 0x3E

    4. Get access to the first 32 bytes block, by writing 0 to address 0x3F

    5. Read 32 bytes from the address 64 (0x40) to the address 95 (0x5F)

    6. Get access to the second 32 bytes block, by writing 1 to address 0x3F

    7. Read 32 bytes from the address 64 (0x40) to the address 95 (0x5F)

    That's all! :)

  • Hi Michael,

    Thank you for updating this thread with the resolution. Great job!

    If any other issues arise, please let us know!

    Sincerely,
    Bryan Kahler