[PIC] Target device does not match - ICD3 MPLAB

"Francois Robbertze" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <[email protected]>
Hi 

 

I want to debug a program on a PIC16F628A using the ICD3.

 

I have a simple program blinking a led to test the setup. 

With a PIC16F88 it works 100% but if I use a PIC16F628A it gives the
following error when I connect the debugger:

 

MPLAB ICD 3 detected

Connecting to MPLAB ICD 3...

Firmware Suite Version...... 01.28.90

Firmware type......................Midrange

CAUTION: Check that the device selected in MPLAB IDE (PIC16F628A)

is the same one that is physically attached to the debug

tool. Selecting a 5V device when a 3.3V device is connected

can result in damage to the device when the debugger checks

the device ID.

MPLAB ICD 3 Connected.

ICD3Err0086:  Target Device ID (00001060) does not match

expected Device ID (00001120). If you experience persistent

problems communicating, the ICD 3 test interface can be

used to help diagnose the problem.

Programming...

Programming/Verify complete

Running...

ICD3Err0040: The target device is not ready for debugging.

Please check your configuration bit settings and program

the device before proceeding.

 

If I use the ICD3 as programmer it programs and verify the 16F628A perfectly
and the led blinking program run normal.

 

Is this an ICD3 and PIC16F628 incompatibility problem or am I missing
something? Any help will be appreciated.

 

Here is my config and I have also set CMCON =7 to disable comparators and
set port as digital IO

    __config _XT_OSC & _WDT_OFF & _MCLRE_ON & _LVP_OFF & _CP_OFF

 

 

Regards

Francois Robbertze
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.