Other Parts Discussed in Thread: BQSTUDIO, , EV2400
Hello,
I am trying to access AFE cell map data (address in flash section as per TRM is 0x44AC) in my SW. As per the TRM of BQ78350, I am sending the the below bytes on the SMBUS but I am getting JUNK data.
To set address, Start SMBUS comm, Send dev address with SMBUS write mode, 0x44, 0x02, 0xAC, 0x44,, , end SMBUS comm.
To read back, Start SMBUS comm, Send dev address with SMBUS read mode, 0x44,,0x05,
After this I was expecting 4 bytes of data, 2 bytes will be 0xAC and 0x44 and 2 bytes will be the AFE CELL map content
However I am getting response as
bufferrx[0] uint8_t 0x22 (Hex)
bufferrx[1] uint8_t 0xac (Hex)
bufferrx[2] uint8_t 0x44 (Hex)
bufferrx[3] uint8_t 0x10 (Hex)
bufferrx[4] uint8_t 0x0 (Hex)
bufferrx[5] uint8_t 0x0 (Hex)
bufferrx[6] uint8_t 0x0 (Hex)
bufferrx[7] uint8_t 0x2 (Hex)
.... so on up to 34 bytes in total which corresponds to 0x22, the first byte.
in bqstudio I am able to read AFE cell map register as 0x001f which is rightly configured as per our application.
Please guide me about where I am going wrong.
What is the correct procedure to acess Data flash memory contents?
Best Regards,
Rajeev