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 support@ccsinfo.com

ICD2 problem

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



Joined: 31 Jul 2005
Posts: 6
Location: Valencia (Spain)

View user's profile Send private message

ICD2 problem
PostPosted: Sat Sep 17, 2005 4:45 am     Reply with quote

Hi , well this is my first post so don't be bad Wink . I am running CCS compiler under MPLAB, using the microchip ICD2 debugger , in debug mode it works fine, but if I use the ICD2 in programmer mode my program doesn't run on the PIC although mplab says ....programming succeeded. Any suggestions??

Thank's in advance.
Regards.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Sep 17, 2005 7:58 am     Reply with quote

After programming, did you remove the programming cable? With the cable attached the ICD2 will keep the PIC in reset mode unless you select the 'release from reset' button in MPLAB (the button with the up arrow).
luissito



Joined: 31 Jul 2005
Posts: 6
Location: Valencia (Spain)

View user's profile Send private message

PostPosted: Sat Sep 17, 2005 2:14 pm     Reply with quote

Yep I remove the programming cable but it still doesn't work, I don't find that button with the up arrow. By the way I am using mplab 6.40 but that shouldn't be a problem.
Regards
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Sep 17, 2005 3:44 pm     Reply with quote

What chip are you using?

Are you using an 18F series in 4xPLL mode?
luissito



Joined: 31 Jul 2005
Posts: 6
Location: Valencia (Spain)

View user's profile Send private message

PostPosted: Sat Sep 17, 2005 4:13 pm     Reply with quote

No, I am using a PIC16F873. It's a strange thing what happens, works perfect in debug mode but in programmer mode it does nothing.
Regards
drolleman
Guest







PostPosted: Sat Sep 17, 2005 9:01 pm     Reply with quote

do you have a pull up resistor on mclr?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Sat Sep 17, 2005 11:34 pm     Reply with quote

The earlier versions allowed you to load the Debugger and the Programmer at the same time. If your version does this, make sure that you have the debugger configuration turned off.
luissito



Joined: 31 Jul 2005
Posts: 6
Location: Valencia (Spain)

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 1:59 am     Reply with quote

I don't have a pull-up resistor on MCLR and I disable debugger mode before enabling programmer mode.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Sun Sep 18, 2005 8:28 am     Reply with quote

luissito wrote:
I don't have a pull-up resistor on MCLR and I disable debugger mode before enabling programmer mode.
Well you need one on it. Look up the schematic of a PIC demo board, like a PICDEM 2 PLUS, from Microchip's website. Look at how they connect MCLR.
luissito



Joined: 31 Jul 2005
Posts: 6
Location: Valencia (Spain)

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 8:40 am     Reply with quote

Thank's everybody, it was that, I have just soldered the pull up resistor and everything goes fine.
Regards.
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