Setting BATFET_DIS to shut down power to an ESP32-S3 appears to restart the microcontroller rather than turning it off.
The same problem occurs if a delayed shipping mode (setting BATFET_DLY and BATFET_DIS) is initiated so it's not an I2C issue.
Everything else is working well.
The QON pin (which is pulled up by the BQ25896) is attached to a switch with a ground the other side. There are no resistors.
The QON pin is also attached as an input pin to the ESP32-S3 so the device can process button presses. On the diagram this is BUTTON_ADC1_GPIO5.
Could the GPIO connection between the microcontroller and the QON pin cause it to immediately exit shipping mode when the power to SYS is dropped using BATFET_DIS ? Are we missing a resistor between the ESP32-S3 and the QON pin?
Any suggestions would be welcome.