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

Compiler Issues with fuses on 18F4431

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



Joined: 07 Dec 2009
Posts: 7
Location: Bradford, West Yorkshire

View user's profile Send private message

Compiler Issues with fuses on 18F4431
PostPosted: Thu Jun 17, 2010 3:57 am     Reply with quote

I have been invoking the ccs compiler from the MPLAB IDE on my current project and have run into some compiler issues, I have set my fuses to what I want but the compiler will not use them and puts in its own in, when I do this on another computer it works ok.

I have all the latest versions of the compiler & MPLAB plug-ins but I cant seem to find the cause of this, I cant use the '#rom' directive to change the fuses directly but this is not good.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 17, 2010 12:19 pm     Reply with quote

Some fuses are not allowed in Debug mode. See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=38429&highlight=debug+mode

If that doesn't help, then post a very small test program that shows the
shows the problem (and compiles without errors).

Also post your compiler version.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jun 17, 2010 3:07 pm     Reply with quote

Also check your MPLAB. Maybe you have an option set to ignore or clear the configuration bits.
For example in MPLAB 8.46 with PicKit3: Programmer - Settings - Program Memory
dmccric



Joined: 07 Dec 2009
Posts: 7
Location: Bradford, West Yorkshire

View user's profile Send private message

PostPosted: Fri Jun 18, 2010 4:46 am     Reply with quote

This also happens when not in debug mode, the compiler version is 4.108.
I have checked the program settings in MPLAB and the ICD3 is set to automatically set the memory ranges.

When I compile the same code on another machine with the same compiler version and I then import that hex file into MPLAB on my machine and the configuration fuses change to what they should be but if I simply compile it on mine then they are messed up.

If the fuses are not setting correctly it doesn't give me confidence when writing code as I spend more time debugging errors that should not be there.
dmccric



Joined: 07 Dec 2009
Posts: 7
Location: Bradford, West Yorkshire

View user's profile Send private message

PostPosted: Fri Jun 18, 2010 4:48 am     Reply with quote

Also I forgot to mention that when I wrote the code it was working in debug mode as normal then simply changed for no reason (they must be a reason), once I write code that works I dont go around changing it later.
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Fri Jun 18, 2010 8:57 am     Reply with quote

Do a re-install on the problem machine.
A corruption in the device database, can cause silly fuse values.

Best Wishes
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