Reset IC STM1001 on VPP/MCLR
Answer
The STM1001 generates a reset pulse lasting up to 140 ms after applying +5V, which may conflict with the T_VPP(RESET) of the ICP2(G3).
Try increasing the Vdd-to-Vpp parameter from 4 ms to 250 ms (perform debugging in full PC-driven mode).
In the future, add a 1 kΩ resistor between the STM1001 and the MCU to prevent signal conflicts.
Note: A very “powerful” programmer may damage the STM1001. ICP programmers include a hardware current-limit circuit that protects both your components and the programmer itself.