|
|
View previous topic :: View next topic |
Author |
Message |
leekp8
Joined: 25 Sep 2006 Posts: 6 Location: Malaysia
|
Fuses problem |
Posted: Wed Sep 27, 2006 1:09 am |
|
|
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
|
|
Posted: Wed Sep 27, 2006 1:34 am |
|
|
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
|
|
Posted: Wed Sep 27, 2006 3:13 am |
|
|
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
|
|
Posted: Thu Oct 12, 2006 12:47 am |
|
|
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
|
|
Posted: Thu Oct 12, 2006 12:54 am |
|
|
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
|
#fuses problem |
Posted: Thu Oct 12, 2006 1:17 am |
|
|
CCS PCH C Compiler, Version 3.235
That was the compiler version. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Oct 12, 2006 2:05 am |
|
|
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
|
#fuses problem |
Posted: Thu Oct 12, 2006 2:26 am |
|
|
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: 1635 Location: Perth, Australia
|
|
Posted: Thu Oct 12, 2006 2:34 am |
|
|
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!! |
|
|
|
|
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
|