Other Parts Discussed in Thread: BQSTUDIO
Hey there,
I'm trying to program the BQ35100 over I2C with sub-commands.
Is there any example library or code for reading the different registers?
For now I mostly get the same response, but I can not validate if the response is ok.
Also, I'm wondering if it is even possible to use the BQ35100 without bqstudio or the evaluation board.
Hopefully it is, because the IC will be integrated in a PCB.
Thanks for the help!
---------------------------------------
I2cWriteBuffer(&I2c, 0x55<<1, 0x00, cmd, 2 );
I2cReadBuffer(&I2c, 0x55<<1, 0x00, data, 6);
gives the value 000000002409
---------------------------------------
I enabled the GE pin, then tried to enter calibration mode:
uint8_t cmd_1[2] = {0x00,0x81};
uint8_t cmd_2[2] = {0x00,0x00};
I2cWriteBuffer(&I2c, 0x55<<1, 0x0000, cmd_1, 2 );
I2cWriteBuffer(&I2c, 0x55<<1, 0x0000, cmd_2, 2 );
I2cReadBuffer(&I2c, 0x55<<1, 0x00, data, 6);
Reading the control status gives the value 2080. As far as I understand, this means the device had a flash issue?
-------------------------------------
I2cReadBuffer(&I2c, 0x55<<1, 0x0001, data, 6);
Reading the device information gives the value 2000.