I made a circuit for charging a 40mah lipo battery (381018), my problem appears when a new uncharged battery is connected. The battery measures 0V at the begining, when it's conected the VBAT pin only goes to 1.58V, so the battery is not getting charged at all.
The problem doesn't appear if the battery have some voltage on it, in that case the battery charges normally.
I have a 25k (0402) resistor connected to Rprog, if I change that resistor to 10K the problem dissapears but I'm charging a 40mah battery with 100mA, it's not safe.
1) Could the problem be the size of the resistor (0402)?
2) Should I put an special array for the 0V uncharged batteries?