Hi
On programming a PIC16F88 with the hex file attached, I get an error: data memory check failed (attached image below)
The code is not protected so what am I doing wrong?
Tx for any help
PIC16F88 error: data memory check failed
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: PIC16F88 error: data memory check failed
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
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
- 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
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?
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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: PIC16F88 error: data memory check failed
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!
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!
-
- 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
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
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
Re: PIC16F88 error: data memory check failed
Tx for that Martin.
Even if the chip appears to program Ok it would be nice to know why it throws errors.
Rgds
Even if the chip appears to program Ok it would be nice to know why it throws errors.
Rgds
- 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
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".
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".
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel