View previous topic :: View next topic |
Author |
Message |
louarnold
Joined: 13 May 2010 Posts: 42 Location: Ottawa, Canada
|
Help: CCS C Compiler with MPLAB ICD2 |
Posted: Sat Jun 19, 2010 10:34 pm |
|
|
How do I get my CCS C Compiler to work with my MPLAB ICD2 LE?
(I don't want to use the MPLAB IDE with a CCS C plugin, because this is not available in the college's lab.)
I have a PIC16F877A development board (sold by both Microchip and CCS), and a CCS C compiler (PCM/PCH V3.170b) with a V3.36 IDE. This is a limited edition evaluation version, but restrictions should not impact the use of an ICD.
Selecting Tools>ICD, displays a "Start Connection" window with choices for serial port and speed. But the ICD is on a USB connection. So picking either COM1 or COM3 and any one of several baud rates, causes the error message: "Could not connect: Cannot detect ICD type".
Further info:
The MPLAB IDE V8.50 and ASM assembler work fine with the ICD2 and the same development board. I can assemble code, program the PIC and then step through it with the debugger.
When I first plugged in the ICD, I noted that a driver was automatically installed. Using the Device manager it is listed under "MicrochipTools" as "Microchip MPLAB ICD 2 Firmware Client", of vintage 2002. The driver was still there from earlier use of MPLAB for another PIC.
Regards,
Lou.
Last edited by louarnold on Sat Jun 19, 2010 10:45 pm; edited 1 time in total |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Jun 19, 2010 10:42 pm |
|
|
I assume you are trying to get the ICD2 to work within the CCS IDE.
CCS has a "plug-in" program that must be installed for this. It's called:
Quote: | MPLAB® ICD2, MPLAB® ICD3 & MPLAB® REAL ICE™ Interface |
Here's the download page:
http://www.ccsinfo.com/downloads.php#mplabPlugIn |
|
![](templates/subSilver/images/spacer.gif) |
louarnold
Joined: 13 May 2010 Posts: 42 Location: Ottawa, Canada
|
|
Posted: Sat Jun 19, 2010 10:50 pm |
|
|
PCM programmer wrote: | I assume you are trying to get the ICD2 to work within the CCS IDE.
CCS has a "plug-in" program that must be installed for this. It's called:
Quote: | MPLAB® ICD2, MPLAB® ICD3 & MPLAB® REAL ICE™ Interface |
Here's the download page:
http://www.ccsinfo.com/downloads.php#mplabPlugIn |
Didn't work. Still the same symptoms. At the URL, the text says the plug-in is only for CCS IDE V4.065 or greater, but I hoped for a miracle. Is it still possible?
I also found this:
Selected Options>Debugger/Programmer; gives Debugger/Programmer Options windows with:
Device Programmer
Name Command
WARP-13 C:\PROGRA~1\WARP13\WARP13.EXE %H /%D
ICD "c:\program files\picc\ICD.EXE" \T"%H"
Debugger
Name Command
MPLAB c:\program files\mplab ide\dlls\mplab.exe %P
where:
%H is the hex file name
%D is the base part number
%P is the project file name
%C is the debug file name |
|
![](templates/subSilver/images/spacer.gif) |
louarnold
Joined: 13 May 2010 Posts: 42 Location: Ottawa, Canada
|
|
Posted: Sat Jun 19, 2010 11:42 pm |
|
|
I started another thread "ICD unit does not have CCS firmware loaded".
So below is obsolete.
In fact, this works part way, even with a V3.36 IDE:
I selected menu Debug>Enable. This brings up a new pane with many tabs. On the Debug Configure tab, on the drop-down list, I selected MPLAB ICD2. The result was the error message "ICD unit does not have CCS firmware loaded". It says the ICD doesn't have its operating system. How/where would I get one? |
|
![](templates/subSilver/images/spacer.gif) |
|