The charge controller is failing or blowing up even after showing proper charging operation.
See attached schematic of the charge controller. The system load is directly connected to Vbat.
The downstream load is two buck converters (disabled for all cases) and a 3.3V LDO supply. The external supply is 24V 1.5A. The battery connected is a lithium ion battery with integrated protection circuit: 14.8V 5Ah.
The different boards are labeled by their serial number S##.
Case 1:
On PCB S15, S5, S4. The battery is not completely discharged and connected to the JST. A programmable DC supply is set to 24V 1.5A and enabled after plugged into the charging port. The PG and STAT1 indicate VCC is valid and charging is occurring. No damage here.
Case 2:
On PCB S15,S5,S4. The battery is completely discharged and connected to the JST. The external supply is hot-plugged. The Charging Chip blows.
Case 3:
On PCB S06. No Battery is connected. The external supply is hot-plugged. PG indicates VCC is valid and the STAT1/STAT2 is off indicating no battery. After a couple of seconds, the charging chip blows.
Case 4:
On PCB S10. The battery is at 14V and connected to the JST. The external supply is hot-plugged. PG indicates VCC is not valid. The external supply is unplugged then plugged back in. PG indicates VCC is valid and STAT1 states it is charging. Then R57 immediately begins to smoke indicating the IC is demanding more current than necessary.