View previous topic :: View next topic |
Author |
Message |
cseusy
Joined: 15 Apr 2006 Posts: 12
|
Configuration fuses not right |
Posted: Mon Jan 11, 2010 6:06 pm |
|
|
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
|
|
Posted: Mon Jan 11, 2010 6:16 pm |
|
|
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
|
|
Posted: Mon Jan 11, 2010 6:42 pm |
|
|
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
|
|
Posted: Mon Jan 11, 2010 6:49 pm |
|
|
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
|
|
Posted: Mon Jan 11, 2010 10:57 pm |
|
|
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! |
|
|
|