Hello,
I have been using a-p-prog (developed by jaromir-sukuba see
https://github.com/jaromir-sukuba/a-p-prog) to program a PIC16LF1902 and it is working fine for smaller code sizes, but as soon as I get above about 40% Flash usage, the code tries to run but then seems to be resetting itself at a certain point (LED blinks erratically instead of at the expected 1 sec intervals). Even though the a-p-prog loader does not report any errors while loading, the code on the PIC does not run when file size is above approx. 40% Flash. When I load the same code using an old PIC programmer, the code runs fine.
Anyone have experience using a-p-prog to program an PIC16LF1902 (or similar)?
This part allows a max Vdd of 3.6 V so I am using 3.3 V on the Vdd pin of the PIC and also using bi-directional level shifter between the 5 V Arduino and the 3.3 V PIC (on the ICSPDAT, ICSPCLK and MCLR lines). It appears a-p-prog was designed to be used only with 5V/16MHz Arduinos as I could not get it to run with a 3.3 V/8MHz Arduino. I don't think the level shifting is a problem as smaller programs work correctly while larger ones (all using a-p-prog as programmer) don't.