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 support@ccsinfo.com

18F87J50 header file wrong???????

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



Joined: 08 Sep 2006
Posts: 182

View user's profile Send private message Send e-mail

18F87J50 header file wrong???????
PostPosted: Wed May 11, 2011 7:06 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed May 11, 2011 1:51 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu May 12, 2011 1:58 am     Reply with quote

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]
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