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 CCS Technical Support

Connect ICD3 with CCS compiler - Error

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



Joined: 23 Mar 2012
Posts: 10

View user's profile Send private message

Connect ICD3 with CCS compiler - Error
PostPosted: Mon Jun 16, 2025 2:42 pm     Reply with quote

Hello,
I am trying to use ICD3 to program a PIC16F628A via a CCS (CCS PCWHD v5.008) compiler direclty (windows 11).
I download the below interface from CCS site and I have install the MPLAB v8.92. Also, I tried with the MPLAB simultaneously open with the CCS compiler but nothing changed.
I am getting this error: "Failureunable to open device: The MPLAB API for this device failed to load"






MPLAB® ICD 2, MPLAB® ICD 3, MPLAB® ICD 4, MPLAB® PICkit™ 3, MPLAB® PICkit™ 4 & MPLAB® REAL ICE™ Interface:
https://www.ccsinfo.com/downloads.php#mplabPlugIn


Also, with the version CCS PCWHD v5.120 and MPLAB v8.92 I am geting a different error: "unable to locate a 32bit jvm...."







How can I solve these errors in one of the two versions (I would prefer to use the v5.120) and program the MCUs with the ICD3?
Ttelmah



Joined: 11 Mar 2010
Posts: 19859

View user's profile Send private message

PostPosted: Tue Jun 17, 2025 12:27 am     Reply with quote

OK.
Don't use the debug button right click as you show.
You need to configure the debug _first_.

From the text tabs at the top of the screen, select 'Debug'. This then
puts a top bar with lots of selections. The key one is about five columns
across 'Configure'. Select this. You should get a window with about a
dozen lines to configure the ICD, but at the top a text entry saying
what ICD is selected. By default it will be the CCS USB ICD. Click on this.
You will get a pull down window with about a dozen entries. Normally
about the third one down will be MPLAB - ICD3. Select this. This now tells
the compiler that when you select 'ICD', it is to use this interface.
Hit 'Accept'.

Now your ICD selection should work.

Problem is you are selecting the ICD, but the compiler has not been told to
use the ICD3 via MPLAB, hence it cannot connect. Sad

It sounds as if it knows about the MPLAB interface, but does not know what
tool to use from this.

There can also be issues with permissions. Has CCS got permission to
talk to the directory where you have MPLAB stored?. Is the MPLAB directory
in the PATH that will be used when you are in the CCS IDE?. Needs to be.

8.92, won't work with the ICD3, unless you downgrade it's firmware,
and use the Microchip driver switcher. Problem is the current ICD3
firmware is too new for 8.92 to support.
2-Chri



Joined: 23 Mar 2012
Posts: 10

View user's profile Send private message

PostPosted: Tue Jun 17, 2025 10:17 am     Reply with quote

Ttelmah wrote:
OK.
Don't use the debug button right click as you show.
You need to configure the debug _first_.

From the text tabs at the top of the screen, select 'Debug'. This then
puts a top bar with lots of selections. The key one is about five columns
across 'Configure'. Select this. You should get a window with about a
dozen lines to configure the ICD, but at the top a text entry saying
what ICD is selected. By default it will be the CCS USB ICD. Click on this.
You will get a pull down window with about a dozen entries. Normally
about the third one down will be MPLAB - ICD3. Select this. This now tells
the compiler that when you select 'ICD', it is to use this interface.
Hit 'Accept'.

Now your ICD selection should work.

Problem is you are selecting the ICD, but the compiler has not been told to
use the ICD3 via MPLAB, hence it cannot connect. Sad

It sounds as if it knows about the MPLAB interface, but does not know what
tool to use from this.

There can also be issues with permissions. Has CCS got permission to
talk to the directory where you have MPLAB stored?. Is the MPLAB directory
in the PATH that will be used when you are in the CCS IDE?. Needs to be.

8.92, won't work with the ICD3, unless you downgrade it's firmware,
and use the Microchip driver switcher. Problem is the current ICD3
firmware is too new for 8.92 to support.


Thanks a lot for the help. Because I am using and the MPLABX and I don't want to use the MPLAB Driver Switcher to switch between drivers (with the possibility something to corrupt) I will use the "MPLAB IPE v6.20" to load the CCS hex file and program the MCU (I don't want to use the ICD3 as debuger).


(It is possible to install different versions of MPLAB X on the same PC, or to have both MPLAB 8 and MPLAB X on the same computer.
In this situation, the only restriction is to run the MPLAB Driver Switcher, that it is automatically installed with MPLAB X vx.xx to set the ICD3/PM3/Real ICE driver for MPLAB X or MPLAB 8. These programmers have a different driver for each of the MPLAB X and the MPLAB 8.)
Source:
https://microchip.my.site.com/s/article/Multiple-MPLAB-X-MPLAB-8-versions-installed-on-the-same-machine#:~:text=Answer-,It%20is%20possible%20to%20install%20different%20versions%20of%20MPLAB%20X,installed%20with%20MPLAB%20X%20vx.
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