View previous topic :: View next topic |
Author |
Message |
nicolasv
Joined: 08 Sep 2003 Posts: 2
|
Unable to program 18F252 with the ICD 2 (USB) + UPM |
Posted: Mon Sep 08, 2003 8:05 am |
|
|
Hi,
I have been unable to find the solution to this, maybe I'm missing something obvious:
I am trying to use the ICD 2 (USB connection) with the AC162049 Universial Programming Module to program an 18F252, but to no avail.
I get the following error when I enable the programmer in MPLAB 6.20:
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0020: Invalid target device id (expected=0x20, read=0x0)...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Then it seems to do the programming but when it tries to verify I get the message:
Verifying...
...Program Memory
ICD0161: (CMemory::Verify) Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEFFC, Val Read = 0x0)
...Verify Failed (and stopped)
...Verify Failed (and stopped)
...Programming failed
I'm pretty sure that I have done the wiring up ok on the UPM, in this way:
VPP : Pin 1
VDD: Pin 20
GND: Pin 8, 19
PGC: 27
PGD: 28
(There is one VDD cable left over, I gather from the 18F datasheet that its not needed in this case).
The programming process actually seems to do nothing at all, as the pics remain with their original program in memory after the process.
Has anyone else encountered this problem? I don't want to have to go back to the picstart plus!
Thanks in advance,
nicolasv |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Sep 08, 2003 10:36 am |
|
|
Make sure that your pin out is correct. The module has a 40 pin ZIF socket so pin 28 is not actually pin 28 on the module. It is really pin 40. Pin 27 is actually pin 39 and so on. Also, you need to have the 9V power supply connected to the ICD2. |
|
|
nicolasv
Joined: 08 Sep 2003 Posts: 2
|
|
Posted: Mon Sep 08, 2003 11:17 am |
|
|
That was exactly what was wrong.. never thought to check against the numbers printed on the board. Of course, in retrospect those numbers only apply to 40-Pin connectors. Many thanks for the prompt help.
- nicolasv |
|
|
|