View previous topic :: View next topic |
Author |
Message |
ertansuluagac
Joined: 13 Jul 2017 Posts: 135 Location: IZMIR
|
How to use Pickit3 with CCS C? |
Posted: Fri Mar 29, 2019 2:55 am |
|
|
Hello,
How do I debug with CCS C using pickit3 ?
How can I program the PIC microprocessors using CCSLOAD ?
I downloaded the file from the web site: http://www.ccsinfo.com/downloads.php which required the MPLAB® ICD2, MPLAB® ICD3, MPLAB® ICD4, MPLAB® PICkit3, MPLAB® PICkit4 & MPLAB® REAL ICE ™ Interface. _________________ Es |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Fri Mar 29, 2019 8:42 am |
|
|
Do you have MPLAB IDE or MPLAB X installed? _________________ Electric Blue |
|
|
ertansuluagac
Joined: 13 Jul 2017 Posts: 135 Location: IZMIR
|
|
Posted: Fri Mar 29, 2019 8:51 am |
|
|
MPLAB IDE v8.92 is installed.
MPLABX v5.10 is installed.
But I want to debug with CCS C compiler. Is this possible?
And I want to load my hex code from CCS LOAD to my processor. Is this possible? I want to make them using PICKIT3. Is CCS C 5.083 suitable for these jobs? _________________ Es |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9241 Location: Greensville,Ontario
|
|
Posted: Fri Mar 29, 2019 8:55 am |
|
|
I use MPLAB v8.92 and a PICKit3. It's easy to program the PIC .
Be SURE to select 'release' in the 'build configuration' THEN compile(F10), THEN download to PIC.
If you download a 'debug' version of your program it will not work...
I've never used 'debug' in 25+ years with PICs, prefer to run code in the 'Real World'.
Jay |
|
|
ertansuluagac
Joined: 13 Jul 2017 Posts: 135 Location: IZMIR
|
|
Posted: Fri Mar 29, 2019 8:59 am |
|
|
I am using CCS C licensed product. My ICD-U80 is broken. I ordered the new one. I'm gonna get my work done with pickit3 until he gets here. But I want to debug with pickit3 in CCS C. How can I do that. Write if you know. You don't have to say anything else. _________________ Es |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19535
|
|
Posted: Fri Mar 29, 2019 11:55 am |
|
|
OK. This is one of those 'slightly complicated' things.
The CCS IDE can't directly talk to the MicroChip debug tools. What
it can do is use the driver that is inside MPLAB, and then talk using this.
You need to ensure the debugger is connected to one of the MPLAB
products using Microchip's driver switcher. I'd suggest that probably
MPLAB 8.92 is likely to be more reliable than MPLAB-X. Then exit this
and launch CCS. You need the interface module from the CCS download
page to add this support.
Then if the hardware is attached, and you launch CCS, and go to the
option to select the debug tool, it should offer you the Microchip
debugger.
This page gives the details:
<http://www.ccsinfo.com/faq.php?page=icd2_real_ice>
It does work, but it is fussy to get working. I've managed to use
two Microchip debuggers in the CCS IDE like this. |
|
|
ertansuluagac
Joined: 13 Jul 2017 Posts: 135 Location: IZMIR
|
|
Posted: Fri Mar 29, 2019 1:45 pm |
|
|
I did it according to the page but it didn't. He's giving that error.
The gives error: Error occurred while programming : program failed.
How can I do ? _________________ Es |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
ertansuluagac
Joined: 13 Jul 2017 Posts: 135 Location: IZMIR
|
|
Posted: Fri Mar 29, 2019 3:17 pm |
|
|
As far as I understand, CCS C cannot debug with pickit. I need to use mplabx for this. Then why is this option in CCS C? So, when I install or debug the program, if I'm using mplab ie and mplab x, then this option should remove CCS C. or, should share a video about how it is used. _________________ Es |
|
|
|