View previous topic :: View next topic |
Author |
Message |
richi-d
Joined: 28 Aug 2007 Posts: 106
|
Bad configuration bits |
Posted: Thu May 03, 2012 11:39 am |
|
|
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!!!!!!!! |
|
|
Battery David
Joined: 01 Feb 2010 Posts: 25
|
|
Posted: Thu May 03, 2012 12:18 pm |
|
|
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
|
|
Posted: Fri May 04, 2012 1:47 am |
|
|
How can I set the Config bits in the code manually? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19535
|
|
Posted: Fri May 04, 2012 1:51 am |
|
|
#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.
Best Wishes |
|
|
richi-d
Joined: 28 Aug 2007 Posts: 106
|
|
Posted: Fri May 04, 2012 2:39 am |
|
|
Thank you- it works! Good that there is in most cases a workaround for CCS Bugs... |
|
|
|