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

Error 44 Internal Error - Contact CCS PR-CODE at 9 SCR=13

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



Joined: 07 Feb 2008
Posts: 164

View user's profile Send private message

Error 44 Internal Error - Contact CCS PR-CODE at 9 SCR=13
PostPosted: Tue Mar 22, 2016 2:49 pm     Reply with quote

Does anyone have a clue why compiles fail only on one of three PCs with the error:

Internal Error - Contact CCS PR-CODE at 9 SCR=13

Code will compile on other PCs with same version installed

Using 5.012 PCWH

I sent email to CCS and haven't heard back. What's PR-CODE at SCR=13

The error the compiler points to is the first active line in the 16F1829.h header file. I've looked in adjacent files around the reference. the header file is called out as the first line in my main C file.

Another weirdity is that I uninstalled 5.021 and reinstalled 5.017-- Code compiles successfully when the project is first opened.

I'm stumped and against a customer's project deadline. I'd appreciate any help I can get here.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 22, 2016 3:37 pm     Reply with quote

Quote:
Internal Error - Contact CCS PR-CODE at 9 SCR=13

It appears to be a version issue:
http://www.ccsinfo.com/forum/viewtopic.php?t=51262
Based on that post, don't use version 5.012.

"PR-CODE" probably refers to "Production Rule", which is a compiler
writer's term for the grammer rules of the language. Your error message
probably means it can't parse the line.
JerryR



Joined: 07 Feb 2008
Posts: 164

View user's profile Send private message

PostPosted: Tue Mar 22, 2016 4:06 pm     Reply with quote

Hi PCM, thanks as usual for your reply. CCS still has not responded!

Well, I'm currently using 5.021 not 5.012. Strange that v5.021 works well on other PCs here. No issue. The whole problem started when I attempted to copy the 16F1829.h header file to a directory containing my other source code.

The other strange this is that it will compile using 5.017 once when the project is first loaded.

Again, thanks for your help. Any other suggestions are most welcome.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 22, 2016 4:55 pm     Reply with quote

Quote:

The whole problem started when I attempted to copy the 16F1829.h
header file to a directory containing my other source code.

Keeping a local copy of a PIC header file in your project directory is
normally a very bad idea.

If you compile your project with a different compiler version, the compiler
will include the local .h file instead of getting it from the \Dev directory.
CCS may change the meaning and layout of the constants in the .h file
between versions. A .h file from vs. 5.010 may cause erratic results
when compiled with vs. 5.021.

You should always let the compiler pick up the .h file from the \Dev
directory.
JerryR



Joined: 07 Feb 2008
Posts: 164

View user's profile Send private message

PostPosted: Tue Mar 22, 2016 6:33 pm     Reply with quote

Good suggestion PCM. May have learned that the hard way!

Thanks!
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