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

18f4550 error with 4.119

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



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

18f4550 error with 4.119
PostPosted: Mon Feb 21, 2011 1:40 pm     Reply with quote

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: 9174
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 21, 2011 3:30 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 21, 2011 3:49 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Feb 22, 2011 9:37 am     Reply with quote

Maybe someone with 4.119 will make a 5 minutes test?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 22, 2011 2:43 pm     Reply with quote

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.
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