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

Configuration fuses not right

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



Joined: 15 Apr 2006
Posts: 12

View user's profile Send private message

Configuration fuses not right
PostPosted: Mon Jan 11, 2010 6:06 pm     Reply with quote

In my ".h" file I set a bunch of configuration fuses. However, my ".lst" file shows me that five of them (out of about 28) set opposite of what I chose. For example, PROTECT comes out NOPROTECT. The other fuses are BROWNOUT, PUT, WDT, AND STVREN. Any ideas? Thanks!

Info: PIC18F4550, CCS version 4.100.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 11, 2010 6:16 pm     Reply with quote

Are you trying to use the ICD to do hardware debugging ?
If so, certain fuses will be automatically disabled by CCS.

From the Microchip ICD2 help file:
Quote:

The Watchdog Timer (WDT) cannot be used when debugging

The target must not have code protection enabled.


If you need more help, then post a very short, but compilable test
program that demonstrates the problem. Don't put a lot of useless
wizard code into it. Make it be very minimal. But it must compile
without errors.
cseusy



Joined: 15 Apr 2006
Posts: 12

View user's profile Send private message

PostPosted: Mon Jan 11, 2010 6:42 pm     Reply with quote

Currently, I am not using the debugger. However, I did have the DEBUG fuse set. I removed that fuse, re-compiled, and the same five items come up with a big "NO". More ideas?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 11, 2010 6:49 pm     Reply with quote

If you need more help, then post a very short, but compilable test
program that demonstrates the problem. Don't put a lot of useless
wizard code into it. Make it be very minimal. But it must compile
without errors.
cseusy



Joined: 15 Apr 2006
Posts: 12

View user's profile Send private message

PostPosted: Mon Jan 11, 2010 10:57 pm     Reply with quote

Hey thanks, PCM programmer! While stripping down my code to demonstrate the problem, I found that I had to delete both "#device ICD=TRUE" and "#fuse DEBUG". I had tried one, then the other. Turns out I needed to do both to get my configuration bits right. Thanks again!
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