Page 1 of 1

Programming Failed.

Posted: Mon Sep 17, 2007 9:49 pm
by KeithSloan
When trying to Program a 16F84A I get an error message

Programming Failed

Data memory check failed.

(Note if the PIC is memory protected this message will be displayed even if the program has been sent successfully.

Have I run out of memory ?

Is my PIC damaged ?

Thanks Keith

Posted: Tue Sep 18, 2007 7:42 am
by Steve
Hello Keith,

It could be that you have the "code protect" option enabled in the configuration word. If your program seems to run fine, then I would suspect this.

Although it could be a broken chip. Do you get the same message when programming other chips (if you have any)?

Programmin Error

Posted: Tue Sep 18, 2007 12:30 pm
by KeithSloan
The 16F84A programs fine with other programs.

I don't have another chip to try.

The program was written for a 16F84 and uses internal EEPROM could this be the problem.

I tried removing Config statement and just controlling by PPP but still the same problem with CONFIG is set to 0x3FF9 which also what PPP advises.

Posted: Tue Sep 18, 2007 12:57 pm
by Steve
Please send the program (HEX and source) to Ben (support@matrixmultimedia.co.uk) and he'll try it here.

Works okay with a 16F88

Posted: Tue Sep 18, 2007 1:23 pm
by KeithSloan
Okay I tried it with a 16F88 that I have and it works fine. So I assume I must have a duff chip.

Posted: Sat Dec 22, 2007 7:15 pm
by Gnu
I've had the same error message when compiling a program to a PIC16F88 which had definitely not been code-protected. In spite of the warning, I found that the program had been correctly compiled into the chip. In the same program I was having problems with an LCD displaying random gibberish and so changed the clocking from internal 32KHz to crystal 20MHz. This cured the LCD problem and also, inexplicably, cleared the compiler error message.