View previous topic :: View next topic |
Author |
Message |
hmmpic
Joined: 09 Mar 2010 Posts: 314 Location: Denmark
|
18f4550 error with 4.119 |
Posted: Mon Feb 21, 2011 1:40 pm |
|
|
Hi
Something is wrong, maybe me. But my old working program wont compile after using 4.119.
The fuses INTRC_IO is changed to INTEC_IO why?
The complier wont let me select #use delay(clock=8M,int)
It complain there are no internal clock?
Try this?
Code: | #include "18f4550.h"
#FUSES INTEC_IO
#use delay(clock=8M,int)
void main(){
While (1){;}
} |
Last edited by hmmpic on Tue Feb 22, 2011 1:45 pm; edited 1 time in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9250 Location: Greensville,Ontario
|
|
Posted: Mon Feb 21, 2011 3:30 pm |
|
|
Open up the header fuile and see what's inside for valid options....
Maybe the header info has changed or there's a 'bug'... |
|
|
hmmpic
Joined: 09 Mar 2010 Posts: 314 Location: Denmark
|
|
Posted: Mon Feb 21, 2011 3:49 pm |
|
|
The header file i changed from CCS?
But why does the #use delay(clock=8M,int) not working? The compiler reply me with no internal clk in this chip?
I think it's a bug.
Workaround:
Code: | void SetClk8M(){
#byte OSCCON=0xfd3
#asm
MOVLW 0x70
MOVWF OSCCON
MOVF OSCCON,W
#endasm
} |
|
|
|
hmmpic
Joined: 09 Mar 2010 Posts: 314 Location: Denmark
|
|
Posted: Tue Feb 22, 2011 9:37 am |
|
|
Maybe someone with 4.119 will make a 5 minutes test? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Feb 22, 2011 2:43 pm |
|
|
Quote: | The complier wont let me select #use delay(clock=8M,int)
|
Yes, I think it's a bug. Contact CCS tech support and ask them to fix
it in the next revision of the compiler. |
|
|
|