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

Compiler errors PCM

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








Compiler errors PCM
PostPosted: Mon Jul 21, 2008 12:29 pm     Reply with quote

Hi

I get this error when compiling.

"
Executing: "C:\Program Files\PICC\Ccsc.exe" +FM "main.c" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 111 "main.c" Line 2(7,40): Unknown keyword in #FUSES "NOPROTECT)"
1 Errors, 0 Warnings.
"

For some strange reason my preprocessors look like this

Code:
#include <16F690.h>
#fuses NOWDT,INTRC_IO,NOPUT, NOPROTECT)
#use delay  (clock=4000000) 
#use rs232(baud=2400,parity=N,xmit=PIN_B7,rcv=PIN_B5,bits=9)


and header file(s) looks like this (Don't know why)

"
//////// Standard Header file for the PIC16F690 device ////////////////
#device PIC16F690
#nolist
//////// Program memory: 4096x14 Data RAM: 253 Stack: 8

-------snip--------

long CCP_1;
#byte CCP_1 = 0x15
#byte CCP_1_LOW= 0x15
#byte CCP_1_HIGH= 0x16

------snip--------

#define COMP_T1_GATE 0x2000000

#bit C1OUT = 0x11B.7
#bit C2OUT = 0x11B.6

////////////////////////////////////////////////////////////////// VREF
// Constants used in setup_vref() are:

------snip--------

#define INT_RB7 0x1800B08

#list

It seems that all of a sudden the header files changed ??

regards
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 21, 2008 1:13 pm     Reply with quote

Quote:
#fuses NOWDT,INTRC_IO,NOPUT, NOPROTECT)

The problem is obvious. You have an extra character on the #fuses line.
Please learn to fix these problems.
Guest








PostPosted: Mon Jul 21, 2008 3:47 pm     Reply with quote

sorry for asking a stupid question.

Sad
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