Unable to use ICD3 with CCS C Compiler

debuggingmicrochippicpic-ccsprogramming

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff šŸ™‚

I have a version 5 CCS C Compiler. I used this compiler before at the university as well. The problem is that the CCS C Compiler is neither able to program the PIC18F Microcontroller via ICD3 nor does it execute the debug function. Is ICD3 even supported by CCS C Compiler? Note that I am able to program my microcontroller via the Microchip "Integrated programming environment" but not via CCS C Compiler.

When it comes to programming the microcontroller, ICD3 is not even in the list in the CCS C Compiler GUI. So I use the Microchip software to program the microcontroller. Now when I click on debug in the CCS C Compiler, it says "Select JRE directory". I am not sure what JRE is. Once I select any directory, I get an error message saying "Target could not be detected".

There are then 2 options, either click on "run diagnostics" or click on "ok". If I click on "run diagnostics" the next error message says "The application was unable to start correctly (0x0000142). Click OK to close the application".

Does this mean that I should now abandon the CCS C Compiler and move to MPLAB?

Best Answer

It looks as if you need to download a software interface module from CCS.

From CCS FAQ FAQ ICD3

Copy begins:

How can I use MPLABĀ® ICD 2, MPLAB Ā® ICD 3 and MPLABĀ® Real Iceā„¢ with CCS Compiler?

MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢ Support

How MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢ works with our Compiler: Microchip's MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢ can now be integrated with the CCS IDE Compiler. In the past, our IDE Compilers (PCW, PCWH, PCWHD and PCDIDE) only supported the ICD-U40 or ICD-S40 in-circuit debugger/programmer, but now users can seamlessly utilize the CCS windows environment with the MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢. All CCS Command-Line Compilers (PCB, PCM, PCH and PCD) can already be integrated with MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢.

CCS IDE Compiler and MPLABĀ® ICD 2, MPLABĀ® ICD 3 or MPLABĀ® REAL ICEā„¢ Integration:

You will need version 4.064 or higher of the CCS IDE Compiler (PCW, PCWH, PCDIDE or PCWHD) You will also need to download the MPLABĀ® ICD 2, MPLABĀ® ICD 3 and MPLABĀ® REAL ICEā„¢ interface module from the CCS Downloads Page. Note: If you do not have MPLABĀ® already installed, you will need to so by visiting www.microchip.com. The debug environment is built-in to the C Aware Real-Time Debugger, once the hardware is connected to your PC and select the programmer/debugger you would like to use from the "Debug Configure" option on the IDE menu tab.

End of copy.