Hi,
In the document (SLUSBZ5, p21) of the gauge, an example is given to access "Terminate Voltage". In the data flash summary table the name is "Cell Terminate Voltage" and not "Terminate Voltage" and the offset is 53 and not 48. Also the following explanations are not clear for me :
Occasionally, a data flash class will be larger than the 32-byte block size. In this case, the DataFlashBlock()
command is used to designate which 32-byte block in which the desired locations reside. The correct command
address is then given by 0x40 + offset modulo 32. For example, to access Terminate Voltage in the Gas
Gauging class, DataFlashClass() is issued 80 (0x50) to set the class. Because the offset is 48, it must reside in
the second 32-byte block. Hence, DataFlashBlock() is issued 0x01 to set the block offset, and the offset used to
index into the BlockData() memory area is 0x40 + 48 modulo 32 = 0x40 + 16 = 0x40 + 0x10 = 0x50; for example,
to modify [VOLTSEL] in Pack Configuration from 0 to 1 to enable the external voltage measurement option.
About Key Programming, p40, the 16-byte key begins at the offset 0x08 (subclass ID 112) in the Data Flash Summary. Also I don't understand in the following paragraph, the command location 0x4C when I expect 0x48.
When the device's SHA-1/HMAC internal engine is used, authentication keys are stored as plain-text in memory.
A plain-text authentication key can only be written to the device while the IC is in UNSEALED mode. Once the IC
is UNSEALED, a 0x00 is written to BlockDataControl() to enable the authentication data commands. Next,
subclass ID and offset are specified by writing 0x70 and 0x00 to DataFlashClass() and DataFlashBlock(),
respectively. The device is now prepared to receive the 16-byte plain-text key, which must begin at command
location 0x4C. The key is accepted once a successful checksum has been written to BlockDataChecksum() for
the entire 32-byte block (0x40 through 0x5F), not just the 16-byte key.
With bqstudio, in using the tool Advanced Comm I2C, what does it mean in the transaction log window, when command is displayed in red characters ?
Mickael White