Other Parts Discussed in Thread: BQSTUDIO, BQ34Z100
I have a df.fs file generated from bqStudio. I found a parser and explanation of the contents. What I have not found is a way to validate that what I am doing is actually working and if it is not what is wrong. I get that once you go into ROM mode the I2C address changes from AA to 16 so the enter and exit operations are easy to validate. The in-between stuff is not quite so easy. What I am doing with a line like
W: 16 00 03 00 00
is breaking it into individual I2C byte writes at incremented addresses as follows
at slave address 16
write address 00 with data 03
write address 01 with data 00
write address 02 with data 00
I do that with every W line. The device responds with an ACK as expected
Then when I get a C I do something similar
C: 16 66 00
turns into
at slave address 16
read address 66
compare byte returned with 00
Everything seems great until I get the line that looks like this:
C: 16 04 B5 44 6A D4
In that case
at slave address 16
I read a byte from 04, 05, 06, 07 in succession
I always seem to get all 00 from each byte
Can you explain the error of my ways?
Thanks