Charging status for a battery connection

Check the P0.17 pin—it’s low when charging and high when not. Use digitalRead(BAT_CHARGE_STATE) in Arduino to detect it. The red CHG LED should also light up when charging. Have you tried this yet?