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 PCH v3.249 compiler message: '$' is not a valid integer.

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



Joined: 06 Mar 2009
Posts: 10
Location: Salinas, CA

View user's profile Send private message

CCS PCH v3.249 compiler message: '$' is not a valid integer.
PostPosted: Fri Oct 14, 2011 8:01 am     Reply with quote

Hi,
I get this message in a dialog window when I try to build my project in MPLAB: PIC C Compiler '$' is not a valid integer. After I close the dialog another window pops up that says MPLAB failed to load.

I have CCS PCH ver 3.249 and MPLAB 8.76. I don't think it is hardware related, but I have the PICKit3 connected to the 44-pin demo board with the PIC18F45K20.

Here is my code--just trying to blink one of the LEDs. Thanks in advance for your help!


Code:
#include <18F45K20.h>
#fuses INTRC, NOWDT, NOPROTECT
#use delay(clock=8000000)


void main() {

   while(true){
      output_high(PIN_D3);
      delay_ms(250);
      output_low(PIN_D3);
      delay_ms(250);
   }
}


One last note, I am not sure if this is related, but I did not have the device include file, so I copied it from the devices folder in the latest CCS demo SW and put in the devices folder for the PICC version that I have.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Oct 14, 2011 9:18 am     Reply with quote

I don't believe 3.249 supports device PIC18F45K20. I'm not sure if simply copying the device file and trying to use it will work either. 3.249 does, however, support PIC18F45J10. I just loaded up the new project wizzard and 45J10 is on the list but 45K20 is not.

Ronald
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Oct 14, 2011 3:36 pm     Reply with quote

rneilsen is correct. The 18F45K20 is not supported by that version and you
cannot simply copy the devices.dat file to get it to work. The only option is
to buy a compiler upgrade. BTW, the latest CCS demo doesn't support the
chip anyway.
_________________
Google and Forum Search are some of your best tools!!!!
jcal54321



Joined: 06 Mar 2009
Posts: 10
Location: Salinas, CA

View user's profile Send private message

PostPosted: Fri Oct 14, 2011 6:52 pm     Reply with quote

Thank you! I guess that answers my question.
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