PIC16F88 error: data memory check failed

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
heathzap
Posts: 12
Joined: Wed Aug 05, 2009 11:44 am
Has thanked: 2 times

PIC16F88 error: data memory check failed

Post by heathzap »

Hi

On programming a PIC16F88 with the hex file attached, I get an error: data memory check failed (attached image below)

PIC error.png
(7.95 KiB) Downloaded 3160 times
SLA Lead Acid Charger.HEX
(8.79 KiB) Downloaded 291 times
The code is not protected so what am I doing wrong?

Tx for any help

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F88 error: data memory check failed

Post by Benj »

Hello,

If your programming directly from PPP then you may first need to open PPP, click the configure button and then click the auto detect button. Once this has happened the 16F88 device should be detected. Now close PPP and try again to program the device.

If this is still failing then it could be your jumper settings or the 16F88 device in your board may have become damaged. This can be tested by trying a fresh 16F88 device in the board.

heathzap
Posts: 12
Joined: Wed Aug 05, 2009 11:44 am
Has thanked: 2 times

Re: PIC16F88 error: data memory check failed

Post by heathzap »

Hi

Programming with HP-488-00-3 (Ver 3) board and all jumpers set correctly for external PSU and no LVP on RB3, 4 or 5. Have tried several new PICs and all yield same result.

Anything esle to try?

Rgds

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F88 error: data memory check failed

Post by Benj »

Hello,

The device is being programmed correctly I have just tried here and get the same message as you are receiving. I think the problem lies in the hex file. What program did you use to create it and are you sure that the configuration settings embedded in the file are meant for a 16F88 device?

heathzap
Posts: 12
Joined: Wed Aug 05, 2009 11:44 am
Has thanked: 2 times

Re: PIC16F88 error: data memory check failed

Post by heathzap »

Hi

Yes. The file attached above is the non-protected version of the code. Sorry...this is not my code so I don't know how it was created. This hex file received from the developer directly. It is definitely for a 16F88 with these settings:

;Program Configuration Register 1
__CONFIG _CONFIG1, _CP_ALL & _CCP1_RB3 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_ON & _MCLR_ON & _PWRTE_ON & _WDT_OFF & _INTRC_IO

;Program Configuration Register 2
__CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF

The code is CP_OFF.

Weird!

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: PIC16F88 error: data memory check failed

Post by medelec35 »

You can check config settings by running PPP.
Make sure you select 16F88 first.
Click open then load hexfile.
Click 'View' then select 'View HEX File'
Finally click on 'Config Screen'
Then you will see the normal ppp config screen which shows the config settings.

Martin
Martin

heathzap
Posts: 12
Joined: Wed Aug 05, 2009 11:44 am
Has thanked: 2 times

Re: PIC16F88 error: data memory check failed

Post by heathzap »

Tx for that Martin.

Even if the chip appears to program Ok it would be nice to know why it throws errors.

Rgds

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F88 error: data memory check failed

Post by Benj »

Hello,

The errors were just saying that the code you put in was not the same as the code read back, probably because of the read protection.

Therefore the code could not be verified or "Direct Memory Check Failed".

Post Reply