Charger is "oscillating" on/off at ~4kHz (along with another longer period and repetitive event) when battery is inserted while external power present (this only happens with Vin between 5.1 and 5.3V).
Notes:
Thermistor is on PCB and does not connect/disconnect with battery.
Charge limit is set at ~1.2A, input current limit is set at ~1.85A.
No other system load present (only battery charging).
This does not seem to occur when battery is present and THEN input power is applied.
Problem seems to only occur when battery is discharged enough to draw full current (though I'm not sure about this one)
Battery is Tenergy 18650 with built in PCM. Problem occurs on all batteries I have tested.
"oscillation" never stops
Scope plots and schematic attached. (red=input current, 1A/div, yellow=input voltage, green=battery voltage)
What is happening?