Re: [PIC] Target device does not match - ICD3 MPLAB
Nicola Perotto <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.pic |
|---|---|
| Message-ID | <[email protected]> |
Hi Francois, You heed a "debug header" for some small resource/pin count chip. In this case that is required: https://developerhelp.microchip.com/xwiki/bin/view/software-tools/programmers-and-debuggers/archive/pep-start/required-debug-header-list/ac162053-54/ Best regarda Nicola On 29/11/2024 22:12, Francois Robbertze wrote: > 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 > -- Nicola Perotto - NP Engineering Sistemi Informatici ed Elettronici skype: nicolap mob IT: +39 335 7162 582 mob HU: +36 30 417 3780 tel: +39 06 916 502 732 fax: +39 0439 633 1191 -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at https://mailman.mit.edu/mailman/listinfo/piclist