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 support@ccsinfo.com

Using Pickit3 in CCS PIC C Compiler

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



Joined: 04 Apr 2015
Posts: 39

View user's profile Send private message

Using Pickit3 in CCS PIC C Compiler
PostPosted: Sat Apr 04, 2015 12:10 pm     Reply with quote

Hi everyone,

I had one problem when using plugin MPLABX-PICKIT3 in CCS Pic c compiler v5.036 , in target device board i using PIC16F628A, i can not debug code by PICKIT3, ( PICKIT3 i have just been bought from supplier of Microchip), please see my picture,

http://www.mediafire.com/view/1el2gglfze3cagy/mach1.png
http://www.mediafire.com/view/xbwr9fh551t98rq/mach2.png

Everyone can help me?

Thanks a lot,
huynhhai
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Apr 04, 2015 12:24 pm     Reply with quote

To install the driver to use Pickit 2 with the CCS IDE, go to this page:
http://www.ccsinfo.com/downloads.php
Down at the bottom of the page, you will see this section:
Code:
MPLAB® ICD2,
MPLAB® ICD3,
MPLAB® PICkit3 &
MPLAB® REAL ICE™
Interface


Click on the buttom below this, to download the file.
Code:
Version 0.003
drolleman



Joined: 03 Feb 2011
Posts: 116

View user's profile Send private message

PostPosted: Sat Apr 04, 2015 6:00 pm     Reply with quote

usually when this happens it is a connection problem. make sure your grounds are perfect, power, mclr, etc. do you have caps close to the pic as possible. do you have another board to test the pickit 3. to prove it is functioning properly.

these are a few things to check for.
huynhhai



Joined: 04 Apr 2015
Posts: 39

View user's profile Send private message

PostPosted: Sat Apr 04, 2015 8:47 pm     Reply with quote

Thanks PCM programmer, drolleman,

I download setup driver with Version 0.003 already & install to PC, but this problem no solve it, the alarm message still appear

I think my pickit3 had one issue, when I using MPLABX, MPLAB IDE to connect with my target board, It appear on alarm message about voltage, as my image below ( mach2.png), pickit3 using 3.3v & my target board using 5V, I had viewed manual of Microchip about modification to pickit3 low voltage operator, check R26, R43, R45 is 0 ohm, maybe this is reason can not connect pickit3 to CCS pic compiler,

Regards,
Ttelmah



Joined: 11 Mar 2010
Posts: 19260

View user's profile Send private message

PostPosted: Sun Apr 05, 2015 3:05 am     Reply with quote

Lets start by clarifying some terms.....

The CCS compiler does not talk to/use any form of programmer/debugger!.

You have the CCS IDE, which is a package that sits 'on top' of the compiler, and talks to the compiler itself, and also to tools like the PicKit. It's an 'Integrated development environment'. A series of separate parts 'integrated' together. The pictures you originally posted are from this.

Now separately from this, there is another development environment, MPLAB-X. This can be setup to use the CCS compiler, and also to use it's own tools.

Now since MPLAB-X, comes from the same source as the PicKit, simply start with this. If this too is saying that it cannot connect to the PicKit/chip properly, then this is a hardware problem, not a software one.

So, don't try to involve too many things at this point. Just try to get MPLAB-X to work with the chip.

Start with this thread:

<http://www.microchip.com/forums/m467944.aspx>

Look particularly at the connection details in the poster linked to, and at the comments made. In particular, your chip is one that does require the pull-down on the LVP pin as it arrives from Microchip (they ship these with LVP enabled). If this pin is floating, it will not work properly.

<http://www.microchip.com/forums/m640643.aspx>

Are you powering the chip from the PicKit, or from it's own supply?.
huynhhai



Joined: 04 Apr 2015
Posts: 39

View user's profile Send private message

PostPosted: Sun Apr 05, 2015 1:04 pm     Reply with quote

Thanks for everyone,

I had been debugged programs pic by pickit3 Vs CCs pic compiler, after i change another PIC16F88 ( the old one PIC16F628A can be error ), but the issue about select the low or high voltage for pickit 3 still not solve.

regards,
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