I have nothing but the PicKit3 connected to RA0, RA1, and RA3.
I have the 2 LEDs connected to RA4 and RA5 as mentioned before and I do have resistors with them.
I have a cap of the recommended value per the datasheet between power and ground.
I was using 3.3V but I have changed to 5V as I attempt to recover my device.
The following is my error message when trying to program in IDE
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7ff
Address: 0 Expected Value: 2801 Received Value: 0
Failed to program device
I tried to use IPE (had never used it before) and was getting an error message that my PicKit3 was set for LVP. I changed the power settings to switch the PicKit3 to HVP. I tried setting Vpp to 2.375V (the minimum) and also 5V. I get the error message quoted below. I tried to erase the device and IPE tells me "Erase successful" but the program is still running on it after the erase.
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.55.01
Firmware type..............Enhanced Midrange
Target voltage detected
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
I was playing with IPE and IDE as I was typing this reply. After playing with the power setting again (Vdd was grayed out, Vpp set to 8.5V, Vdd Nom set to 2.375, and Vdd APP set to 2.375) I disconnected my PicKit3 from IPE. After that I was able to re-program my device in IDE.
I now have a timeout routine set in my program so it will not get stuck in a loop waiting for I2C communication. After the I2C times out I have a 1 minute delay before it tries again. I hope this will help prevent this re-programming problem.
Thanks for the help!
post edited by Mike432 - 2019/06/16 09:29:21