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.

BQ24295 Shipping mode (BAT_FET won't turn off)

Other Parts Discussed in Thread: BQ24295

Hi,

Somewhow, I cannot get the BQ24295 to turn the BATFET off so the system enters shipping mode.

The following code writes the I2C timeout and the BATFET register in response to a button press. Since the system is already operating with the battery as power source, I expected everyting to turn off. Unfortunately nothing seems to happen at all... 

Also tried these register writes with VBUS power and remove power afterwards, but no effect either.

Any idea what could be missing here? The idea is to shutdown/disconnect the battery until the external power source is connected again.

/* Clear faults, if any */
HAL_I2C_Mem_Read(&hi2c1, BQ24295, 0x09, 1, stat, 1, 100);
HAL_I2C_Mem_Read(&hi2c1, BQ24295, 0x09, 1, stat, 1, 100);

HAL_I2C_Mem_Read(&hi2c1, BQ24295, 0x05, 1, stat, 3, 100);

stat[0] &= ~0x30;    // Disable watchdog timer
stat[2] |= 0x10;    // Turn BATFET off

HAL_I2C_Mem_Write(&hi2c1, BQ24295, 0x05, 1, stat, 3, 100);