View previous topic :: View next topic |
Author |
Message |
JerryR
Joined: 07 Feb 2008 Posts: 167
|
Error 44 Internal Error - Contact CCS PR-CODE at 9 SCR=13 |
Posted: Tue Mar 22, 2016 2:49 pm |
|
|
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
|
|
Posted: Tue Mar 22, 2016 3:37 pm |
|
|
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: 167
|
|
Posted: Tue Mar 22, 2016 4:06 pm |
|
|
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
|
|
Posted: Tue Mar 22, 2016 4:55 pm |
|
|
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: 167
|
|
Posted: Tue Mar 22, 2016 6:33 pm |
|
|
Good suggestion PCM. May have learned that the hard way!
Thanks! |
|
|
|