Ive run into a strange problem with some code on a PIC18f1320
After I program the chip with a particular code (just a test program that flashes LEDs etc), the pic can no longer be recognised by the programmer.
The test code works as it should, but once programmed MPLAB cant recognise the chip anymore. So now I have accumulated several chips and boards (with soldered on chip), that are stuck with this flashing LED software.
It does the same thing with a fresh DIP package PIC18f1320 in my ICD2 programmer.
My hardware works fine with other code.
I want to look into the software, to see what the problem is, but im confused as to whats going on below the surface. My questions are:
#1 How is this behaviour possible?
#2 How can I restore the chips?
Ive tried erasing, and reprogramming through MPLAB, and just skipping past all the errors but that doesnt work.
Can I just stick the programming voltage into the MCLR pin to erase the chip?