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

debug connection order?

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



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

debug connection order?
PostPosted: Fri Jul 10, 2009 9:39 am     Reply with quote

What is the preferred sequence of connection to a target system connected to the ICD-U64 debugger? If I am in the CCS development environment (IDE) and want to start a debug session with my target system, do I connect the debugger to my target and power up the target system before connecting the USB cable to the computer and starting the debug session from the IDE or do I connect the USB cable to the computer first and then power up my target system? Should it make any difference?

PCWH V4.093
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 1:00 pm     Reply with quote

I don't know about the CCS ICD units, but the Microchip ICD2 uses
this order of operations:

1. Plug the ICD2 into the PC.

2. If the target board has its own power supply, turn on it on.

3. Select the Device in the MPLAB Configure menu (normally this
is already done, when you setup your project).

4. Then plug the ICD2 into the target board.

5. Select "Connect" in the MPLAB Programmer (or Debugger) menu.

6. You are now ready to do any ICD2 operation.
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 2:17 pm     Reply with quote

Thanks very much for that.

So, if I understand the sequence correctly, the debug adapter is powered up (via the USB connection to the PC) and the target system is powered up (via the target system power supply) separately before making the 5 (or 6, if using B3) pin connection from the debug adapter to the target system... Is that correct? In effect, this is a "hot" connection from the debug adapter to the target system?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 2:19 pm     Reply with quote

Quote:

In effect, this is a "hot" connection from the debug adapter to the target system?

Yes. The ICD2 connector is plugged into the target board when both
units are already powered-up.

Look in the lower left corner of the ICD2 poster, in the middle box.
http://ww1.microchip.com/downloads/en/DeviceDoc/51265g.pdf
It says "Always apply power to the MPLAB ICD2 before applying power
to your target applications".

So the important thing is that the ICD2 is powered-up first.


Last edited by PCM programmer on Fri Jul 10, 2009 2:24 pm; edited 1 time in total
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 2:21 pm     Reply with quote

Thanks very much!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 10, 2009 2:24 pm     Reply with quote

See the edit that I made, for more info.
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