ELECTRONICIENSENIOR
Member level 3

Hello,
I am using MpLab 8.92 on Windows XP with a PicKit 3 for a PIC16F1827:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.90
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
Target Detected
Device ID Revision = 00000007
But sometimes :
Target Detected
Target Device ID (00000000) does not match expected Device
ID (000027a0).
Even if I stop supply of the target, disconnect and reconnect ICSP tool, the result is often the same.
And when it is connected I encounter programmation errors :
PICkit 3 detected
Connecting to PICkit 3...
Running self test...
Self test completed
Firmware Suite Version...... 01.28.90
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
PK3Err0045: You must connect to a target device to use PICkit
3.
Target Detected
Device ID Revision = 00000007
Programming...
The following memory regions failed to program correctly:
Program Memory
Address: 00000002 Expected Value: 00003fff Received Value: 00003ffd
Programming failed
Programming...
The following memory regions failed to program correctly:
Program Memory
Address: 00000004 Expected Value: 00003180 Received Value: 00002180
Programming failed
Sometimes if I restart the computer it works well during a few hours, and then fails again. The hardware remains unchanged. I use an ICP22 V1.0 mounted on a MB-102 breadboard. Attached is the schematic, where I have suppressed C5 on MCLRn, and R6 is only 470r.
May I have help please ?
I have made some experiments. I have three ICP22, with three PICs. One board has always the cap on MCLRn.
I have taken another MB-102, with supply adaptor, and I have connected to an usb port of the computer used with the PicKit. These two PICs are correctly identified and programmed (I tried three times).
I have taken the PIC which I use since many days, it is also OK.
The difference is that on my all breadboard I have a RS232 to USB and a logic analyser, both connected to another portable computer, but not in use at this time. And if I disconnect these two USB links the problem disappears !!!
GROUND LOOP PROBLEM ?
I am using MpLab 8.92 on Windows XP with a PicKit 3 for a PIC16F1827:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.90
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
Target Detected
Device ID Revision = 00000007
But sometimes :
Target Detected
Target Device ID (00000000) does not match expected Device
ID (000027a0).
Even if I stop supply of the target, disconnect and reconnect ICSP tool, the result is often the same.
And when it is connected I encounter programmation errors :
PICkit 3 detected
Connecting to PICkit 3...
Running self test...
Self test completed
Firmware Suite Version...... 01.28.90
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
PK3Err0045: You must connect to a target device to use PICkit
3.
Target Detected
Device ID Revision = 00000007
Programming...
The following memory regions failed to program correctly:
Program Memory
Address: 00000002 Expected Value: 00003fff Received Value: 00003ffd
Programming failed
Programming...
The following memory regions failed to program correctly:
Program Memory
Address: 00000004 Expected Value: 00003180 Received Value: 00002180
Programming failed
Sometimes if I restart the computer it works well during a few hours, and then fails again. The hardware remains unchanged. I use an ICP22 V1.0 mounted on a MB-102 breadboard. Attached is the schematic, where I have suppressed C5 on MCLRn, and R6 is only 470r.
May I have help please ?
--- Updated ---
I have made some experiments. I have three ICP22, with three PICs. One board has always the cap on MCLRn.
I have taken another MB-102, with supply adaptor, and I have connected to an usb port of the computer used with the PicKit. These two PICs are correctly identified and programmed (I tried three times).
I have taken the PIC which I use since many days, it is also OK.
The difference is that on my all breadboard I have a RS232 to USB and a logic analyser, both connected to another portable computer, but not in use at this time. And if I disconnect these two USB links the problem disappears !!!
GROUND LOOP PROBLEM ?
Last edited: