View previous topic :: View next topic |
Author |
Message |
jcal54321
Joined: 06 Mar 2009 Posts: 10 Location: Salinas, CA
|
CCS PCH v3.249 compiler message: '$' is not a valid integer. |
Posted: Fri Oct 14, 2011 8:01 am |
|
|
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
|
|
Posted: Fri Oct 14, 2011 9:18 am |
|
|
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: 1933 Location: Norman, OK
|
|
Posted: Fri Oct 14, 2011 3:36 pm |
|
|
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
|
|
Posted: Fri Oct 14, 2011 6:52 pm |
|
|
Thank you! I guess that answers my question. |
|
|
|