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

CCS PCD with MPLAB X, V1.2 compile errors

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



Joined: 18 Feb 2007
Posts: 22
Location: TN, USA

View user's profile Send private message

CCS PCD with MPLAB X, V1.2 compile errors
PostPosted: Mon Jul 02, 2012 1:51 pm     Reply with quote

Has anyone successfully used MPLAB X, V1.2 with a PIC24, PCD compiler?

I am getting errors on most of the CCS built in functions, OUTPUT_BIT(), INPUT(), DELAY_US() etc.

Just want to know if I should switch back to MPLAB 8 or keep plugging along with MPLAB X, V1.2 ?

Thanks.
_________________
Mick
jeremiah



Joined: 20 Jul 2010
Posts: 1345

View user's profile Send private message

PostPosted: Mon Jul 02, 2012 7:11 pm     Reply with quote

I just tried compiling with mplabx 1.2 and CCS PCWHD 4.134 for a PIC24FJ256GA106 and had no trouble. Can you post your completed, SMALL, compilable program that has errors? I can try it here if so.

As a side note, if you are referring to the red lines, ignore those. Those aren't compiler errors, just the editor not understanding built ins.
mickent



Joined: 18 Feb 2007
Posts: 22
Location: TN, USA

View user's profile Send private message

PostPosted: Mon Jul 02, 2012 11:07 pm     Reply with quote

Thanks for your reply, jeremiah. I was referring to the red lines and when I "mouse over" I see a message that the function is not recognized. So I ignore all this? I was using known good code to test.
I downloaded 8.xx but would like to use X v1.2 if possible so I'll try some more. Your answer was what I wanted to hear. Thanks again.
_________________
Mick
jeremiah



Joined: 20 Jul 2010
Posts: 1345

View user's profile Send private message

PostPosted: Tue Jul 03, 2012 6:39 am     Reply with quote

The red lines are an editor thing, so you can ignore them if you want. Right now, mplabx editor doesn't know about CCS built ins. You can turn this option off in the options dialog in mplabx. Something like "Syntax Highlighting".
andyfraser



Joined: 04 May 2004
Posts: 47
Location: UK

View user's profile Send private message

CCS PCD with MPLAB X, V1.2 compile errors
PostPosted: Wed Jul 04, 2012 6:30 am     Reply with quote

Rather than globally turning off syntax checking, I would create a header file with prototypes for the CCS functions you are using. That would at least remove the warnings from your code.

Andy
mickent



Joined: 18 Feb 2007
Posts: 22
Location: TN, USA

View user's profile Send private message

PostPosted: Wed Jul 04, 2012 2:24 pm     Reply with quote

Thanks Andy, Darren sent me a file that does just that. I can't post it but registered users could contact Darren. Ask for bif.h
_________________
Mick
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