View previous topic :: View next topic |
Author |
Message |
starfire151
Joined: 01 Apr 2007 Posts: 195
|
debug connection order? |
Posted: Fri Jul 10, 2009 9:39 am |
|
|
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
|
|
Posted: Fri Jul 10, 2009 1:00 pm |
|
|
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
|
|
Posted: Fri Jul 10, 2009 2:17 pm |
|
|
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
|
|
Posted: Fri Jul 10, 2009 2:19 pm |
|
|
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
|
|
Posted: Fri Jul 10, 2009 2:21 pm |
|
|
Thanks very much! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jul 10, 2009 2:24 pm |
|
|
See the edit that I made, for more info. |
|
|
|