View previous topic :: View next topic |
Author |
Message |
mickent
Joined: 18 Feb 2007 Posts: 22 Location: TN, USA
|
CCS PCD with MPLAB X, V1.2 compile errors |
Posted: Mon Jul 02, 2012 1:51 pm |
|
|
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: 1353
|
|
Posted: Mon Jul 02, 2012 7:11 pm |
|
|
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
|
|
Posted: Mon Jul 02, 2012 11:07 pm |
|
|
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: 1353
|
|
Posted: Tue Jul 03, 2012 6:39 am |
|
|
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
|
CCS PCD with MPLAB X, V1.2 compile errors |
Posted: Wed Jul 04, 2012 6:30 am |
|
|
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
|
|
Posted: Wed Jul 04, 2012 2:24 pm |
|
|
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 |
|
|
|