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.

BQ34Z100-G1: How to read CC Offset and Board offset by message I2C

Part Number: BQ34Z100-G1

Hello,

I have a problem to read the value of CC Offset and Board offset. 

I see that there is example to read VOLTSEL at page 20-21 of document. I can read the VOLTSEL in Pack Configuration. But I can't get the correct CC offset  and Board offset

Below is what I do

1. Unseal the device using the Control() (0x00/0x01) command if the device is sealed.
    a. Write the first 2 bytes of the UNSEAL key using the Control(0x0414) command.
(wr 0x00 0x14 0x04)
b. Write the second 2 bytes of the UNSEAL key using the Control(0x3672) command.
(wr 0x00 0x72 0x36)


2. Write 0x00 using BlockDataControl() command (0x61) to enable block data flash control.
(wr 0x61 0x00)


3. Write 0x68 (CC Offset) using the DataFlashClass() command (0x3E) to access the
Registers subclass.
(wr 0x3E 0x68)


4. Write the block offset location using DataFlashBlock() command (0x3F).

 (wr 0x3F 0x00).


5. To read the data of a specific offset, use address 0x68 + mod(8, 32). 0x68+d8 = 0x70
(rd 0x70 )  

I can receive 0x00 0x2D at step 5. But the real CC offset is -1419.

Can anyone tell me where is the my problem?