View previous topic :: View next topic |
Author |
Message |
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
#ID generates compiler internal error |
Posted: Wed Oct 10, 2018 10:56 am |
|
|
Does anyone use the #ID compiler directive?
I am trying to resurrect a system which compiled and ran fine under PCB version 2.213 around 1998. It uses the #ID directive to put the serial number in the ID bit of the PIC (16C58B).
I have everything working except the #ID line:
#ID 0 , 1 , 4 , 2
gives:
--- Info 300 "C:\Users\Douglas\Desktop\TXR_Pcal\TXR0142.cal" Line 29(4,6): More info: ** Access violation at address 042D0101 in module 'PCB.dll'. Read of address 00000000
*** Error 44 "C:\Users\Douglas\Desktop\TXR_Pcal\TXR0142.cal" Line 29(4,6): Internal Error - Contact CCS
Does anyone know of an easy fix or do I have to contact CCS? _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Oct 10, 2018 11:26 am |
|
|
It compiled OK for me after I removed the spaces. Example:
Code: | #include <16C58a.H>
#ID 0,1,4,2 |
One of the things I do in trouble-shooting is to "try things". I'll have a
hunch, and often it will work. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Wed Oct 10, 2018 11:46 am |
|
|
and I remember a similar thread a while back where the spaces caused an issue. Interesting, since you would expect the compiler to simply skip 'whitespace', but it looks as if the old one did, and the new one doesn't.... |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Wed Oct 10, 2018 1:46 pm |
|
|
It seems to be specifically the spaces after the digits and before the commas that are the problem. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
|