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

Bad configuration bits

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



Joined: 28 Aug 2007
Posts: 106

View user's profile Send private message

Bad configuration bits
PostPosted: Thu May 03, 2012 11:39 am     Reply with quote

Hi,

I updated my compiler to the newest version, press compile and find out the first error - again:
The configuration bits are wrong. I set this:
Code:
#FUSES FRC_PLL,ICSP2,PROTECT,NOIESO,NOJTAG,NODEBUG,NOIOL1WAY,WDT32,WPOSTS10,WINDIS


and get PGEC1 and PGED1 instead of 2... PIC24FJ192GA108

Now I have always after compiling to correct this value!!!!!!!! Evil or Very Mad
Battery David



Joined: 01 Feb 2010
Posts: 25

View user's profile Send private message

PostPosted: Thu May 03, 2012 12:18 pm     Reply with quote

I found a problem with 4.132 and stepped back to 4.131. CCS told me they have fixed my issue in the next update. It didn't have to do with configuration bits but you need to let them know what you are seeing.

Also, read this about posting:
http://www.ccsinfo.com/forum/viewtopic.php?t=47549
richi-d



Joined: 28 Aug 2007
Posts: 106

View user's profile Send private message

PostPosted: Fri May 04, 2012 1:47 am     Reply with quote

How can I set the Config bits in the code manually?
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Fri May 04, 2012 1:51 am     Reply with quote

#ROM

Easiest way is to run MPLAB, turn off 'set fuses from code', set the fuses you want, then note down the values for each register, and put these numbers into a #ROM statement. Means you don't have to calculate them yourself, and more likely to avoid errors. Smile

Best Wishes
richi-d



Joined: 28 Aug 2007
Posts: 106

View user's profile Send private message

PostPosted: Fri May 04, 2012 2:39 am     Reply with quote

Thank you- it works! Good that there is in most cases a workaround for CCS Bugs...
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