Not really a C question.. but...
I have been using the free version of SourceBoost C to play around and had it working for a few attempts, but the I seem to have done something bad with my config fuses because after programming the chips, they can't be read or written to anymore. I have two programmers, the latest a PICkit2 does not even see the 16F88 after it's been programmed.
Suspecteding the fuses, I changed them to 3FFF 0000 with the same exact code, and that programms correctly and leaves me with a chip I can continue to read and write flash data to.
Here is what I was using to compile...
#pragma DATA _CONFIG1, _CP_OFF & _CCP1_RB3 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_IO
#pragma DATA _CONFIG2, _IESO_OFF & _FCMEN_OFF
If I change the lines to following, it does program and verify...
#pragma DATA 0x2007, 0x3FFF
#pragma DATA 0x2008, 0xFF
Is there anything in my _CONFIGs that would be killing my ability to re-program these? Am I somehow activating code protect? Any way to recover the chips? The PICkit2 has a erase option, but it won't enable it since it doesn't see any of the messed up chips. Anyone have an idea what I am doing wrong? Square plug in round hole?