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.

RTOS/BQ27621-G1: using bq27621 with CC26xx SDK

Part Number: BQ27621-G1
Other Parts Discussed in Thread: CC2640,

Tool/software: TI-RTOS

I am starting a project using the CC2640 SDK with bq27621 on board.  When I read the datasheet & reference, I am confused with the Control & extended command.

Is there driver available for SimpleLink platform which I can check.

Currently I am using Middleware I2C command to read 2 bytes :

SensorI2C_readReg (0x04, (uint8_t *) &rBuf, 2);

In this case, I only use single byte command (address) to read, it seems to work.

But when I try to read from DEVICE_TYPE (should be 0x0621)

uint8_t wBuf[4]={0,1, 0,1};

SensorI2C_writeRead(wBuf, 4, rBuf, 2);

it does not come back correct, it all zero

Thanks for advice