Well I figured out the issue, not the solution but the issue.
I completely isolated the chip and it would still not program so, I went ahead and replaced the chip and it programmed fine. I got pin GP.2 blinking an LED so that was successful.
Still leaving the MCLR, ICSPDat and ICSClk isolated I decided to try and toggle pin GP.1
As soon as I do this the my MELabs throws a Config error while programming and the chip becomes useless, no programability or eraseability just like my first post.
Any clue why the board is doing this? Here is a snipit of my code
[code\]
DEFINE OSCCAL_1K 1
' Config Fuses
@ __config _INTRC_OSC_NOCLKOUT & _CPD_ON & _CP_ON & _BODEN_ON & _MCLRE_OFF & _PWRTE_ON & _WDT_ON
' Variable Definitions
LED VAR GPIO.1
blink var bit
CMCON=7
TRISIO=%11111001 ' Input 0,3,4,5 Output 1,2
ANSEL=0
Main:
blink=blink+1
led=blink
pause 100
goto main
[\code]
If I change this code to apply to pin GP.2 it works fine and will reprogram all day long
Thanks for any help
Bookmarks