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 support@ccsinfo.com

Fuses problem

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



Joined: 25 Sep 2006
Posts: 6
Location: Malaysia

View user's profile Send private message

Fuses problem
PostPosted: Wed Sep 27, 2006 1:09 am     Reply with quote

Hi,

I have compilation problem with the following:


#include <18F6527.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PROTECT,NOPUT,NOBROWNOUT,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, STREAM=RS485)
#use rs232(baud=9600, xmit=PIN_G1, rcv=PIN_G2, ERRORS, STREAM=UART)


Compilation Output:
Executing: "C:\Program files\Picc\CCSC.exe" "flrwtest.C" +FH +DF +LN +T -A +M +Z +Y=9 +EA
*** Error 111 "E:\ats\A900_WD\BusCard\FLRWTEST\flrwtest.C" Line 4(7,49): Unknown keyword in #FUSES "NOLVP"
1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Wed Sep 27 15:03:58 2006



If I were to remove NOLVP,

#include <18F6527.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PROTECT,NOPUT,NOBROWNOUT //,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, STREAM=RS485)
#use rs232(baud=9600, xmit=PIN_G1, rcv=PIN_G2, ERRORS, STREAM=UART)


Compilation output will be:

Executing: "C:\Program files\Picc\CCSC.exe" "flrwtest.C" +FH +DF +LN +T -A +M +Z +Y=9 +EA
*** Error 111 "E:\ats\A900_WD\BusCard\FLRWTEST\flrwtest.C" Line 4(7,51): Unknown keyword in #FUSES "NOBROWNOUT"
1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Wed Sep 27 15:08:13 2006


What could be the problem?

Regards!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 27, 2006 1:34 am     Reply with quote

It compiles OK with PCH vs. 3.249. What is your compiler version ?

Code:

#include <18F6527.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PROTECT,NOPUT,NOBROWNOUT,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, STREAM=RS485)
#use rs232(baud=9600, xmit=PIN_G1, rcv=PIN_G2, ERRORS, STREAM=UART)

//====================================
void main()
{

while(1);
}
leekp8



Joined: 25 Sep 2006
Posts: 6
Location: Malaysia

View user's profile Send private message

PostPosted: Wed Sep 27, 2006 3:13 am     Reply with quote

PCM programmer wrote:
It compiles OK with PCH vs. 3.249. What is your compiler version ?

How to check the PCH version?
I also have the PCM install too.
I used with MPLAB.
stu



Joined: 11 Oct 2006
Posts: 3
Location: south australia

View user's profile Send private message

PostPosted: Thu Oct 12, 2006 12:47 am     Reply with quote

to check the version: under the help tab, click 'about'.

but for the 18f series chips, i believe you will need either the PCH or PCWH compiler.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 12, 2006 12:54 am     Reply with quote

Quote:
How to check the PCH version?
I also have the PCM install too.
I used with MPLAB.


Compile a program (successfully), and then look at the .LST file for
the program. It will be in your project directly. The compiler version
is given at the top of the .LST file. Look for a number like 3.191, or
3.236, or 3.249, etc.
leekp8



Joined: 25 Sep 2006
Posts: 6
Location: Malaysia

View user's profile Send private message

#fuses problem
PostPosted: Thu Oct 12, 2006 1:17 am     Reply with quote

CCS PCH C Compiler, Version 3.235

That was the compiler version.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 12, 2006 2:05 am     Reply with quote

I installed PCH vs. 3.235 and it compiles with no errors.
Quote:

CCS PCH C Compiler, Version 3.235

Loaded C:\Program Files\PICC\Projects\PCH_Test\PCH_Test.cof.
BUILD SUCCEEDED: Thu Oct 12 01:04:21 2006


Here is the program:
Code:
#include <18F6527.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PROTECT,NOPUT,NOBROWNOUT,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, STREAM=RS485)
#use rs232(baud=9600, xmit=PIN_G1, rcv=PIN_G2, ERRORS, STREAM=UART)

//====================================
void main()
{

while(1);
}
leekp8



Joined: 25 Sep 2006
Posts: 6
Location: Malaysia

View user's profile Send private message

#fuses problem
PostPosted: Thu Oct 12, 2006 2:26 am     Reply with quote

I cut and paste your program as below:

Code:
#include <18F6527.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PROTECT,NOPUT,NOBROWNOUT,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS, STREAM=RS485)
#use rs232(baud=9600, xmit=PIN_G1, rcv=PIN_G2, ERRORS, STREAM=UART)

//====================================
void main()
{

while(1);
}

The results I got is as follows:

Clean: Deleting intermediary and output files.
Clean: Deleted file "flrwtest.$$$".
Clean: Deleted file "flrwtest.ERR".
Clean Warning: File "E:\ats\A900_WD\BusCard\FLRWTEST\flrwtest.o" doesn't exist.
Clean: Done.
Executing: "C:\Program files\Picc\CCSC.exe" "flrwtest.C" +FH +DF +LN +T -A +M +Z +Y=9 +EA
*** Error 111 "E:\ats\A900_WD\BusCard\FLRWTEST\flrwtest.C" Line 3(7,48): Unknown keyword in #FUSES "NOLVP"
1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Thu Oct 12 16:24:13 2006


What could be the reason?

Regards!
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Oct 12, 2006 2:34 am     Reply with quote

Did you select the device from the config menu?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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