View previous topic :: View next topic |
Author |
Message |
Jody
Joined: 08 Sep 2006 Posts: 182
|
18F87J50 header file wrong??????? |
Posted: Wed May 11, 2011 7:06 am |
|
|
Hello,
compiler version:4.119
I get the error in MPLAB that the Extended CPU Mode configuration bit is enabled...
In mine code I have this disabled... and when checking the configuration settings in MPLAB I can see it is enabled...????
Then in the CCS device editor I see that that NOXINST has the value of 1 AND XINST has also the value of 1....
I see that the WDT and the NOWDT has also the same value's.....
Is this where the problem is?? and is it possible to get a 'new' or improved header file???
Regards,
Jody |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed May 11, 2011 1:51 pm |
|
|
It works for me. I compiled the following test program with vs. 4.119:
Code: |
#include <18F87J50.h>
#fuses HS,NOWDT
#use delay(crystal=4000000)
//===============================
void main(void)
{
while(1);
}
|
The Config bits look correct in the .LST file, and if when I look at the
Configure / Configuration bits menu (after compiling), it lists the correct
values also. It says:
MODE: Microcontroller mode - External Bus Disabled
In that MPLAB menu, the actual settings are in the far right column.
Also, you have to read it carefully. It doesn't just say "Enabled" or
"Disabled". They sometimes have long sentences to tell the state of
the Config bits.
Also, make sure MPLAB is actually set for the 18F87J50.
If can't find the problem, then re-install the compiler and try again.
Here are the settings in the .LST file:
Code: |
CCS PCH C Compiler, Version 4.119, xxxx 11-May-11 12:44
Filename: C:\Program Files\PICC\Projects\PCH_Test\PCH_Test.lst
ROM used: 38 bytes (0%)
Largest free fragment is 65528
RAM used: 4 (0%) at main() level
4 (0%) worst case
Stack: 0 locations
Configuration Fuses:
Word 1: F7AE NOWDT PLL1 STVREN NOXINST NODEBUG NOCPUDIV NOPROTECT
Word 2: FFC4 HS FCMEN IESO WDT32768
Word 3: FFF8 EASHFT MCU BW16 NOWAIT CCP2C1 ECCPE PMPEMB MSSPMSK7 |
|
|
|
Jody
Joined: 08 Sep 2006 Posts: 182
|
|
Posted: Thu May 12, 2011 1:58 am |
|
|
Hello PCM Programmer,
And what are the setting you have in the device editor??
I already send this also to CCS and they are looking in to it...
But good news re-installed the compiler and I didn't get the message again...
Looking with the device editor still the CW value for XINST and NOXINST is the same.....
I think I am over looking something....
Regards,
Jody
[/img] |
|
|
|