CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Unable to program 18F252 with the ICD 2 (USB) + UPM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nicolasv



Joined: 08 Sep 2003
Posts: 2

View user's profile Send private message

Unable to program 18F252 with the ICD 2 (USB) + UPM
PostPosted: Mon Sep 08, 2003 8:05 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 08, 2003 10:36 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 08, 2003 11:17 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group