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 CCS Technical Support

#ID generates compiler internal error

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



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

#ID generates compiler internal error
PostPosted: Wed Oct 10, 2018 10:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 10, 2018 11:26 am     Reply with quote

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: 19529

View user's profile Send private message

PostPosted: Wed Oct 10, 2018 11:46 am     Reply with quote

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.... Sad
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Wed Oct 10, 2018 1:46 pm     Reply with quote

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