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

Compiler error 44

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



Joined: 16 Jul 2014
Posts: 2

View user's profile Send private message

Compiler error 44
PostPosted: Wed Jul 16, 2014 9:49 pm     Reply with quote

Just installed compiler 5.026. Created small program to read a few bits, set a few bits, timer interrupts, etc. to try out the program.

All was well until I added an ADC read to my program and got this error message:

***Error 44 "F251.c" Line 174[1,1] Internal Error - Contact CCS LABEL SCR=1029

Processor is 18F13K22
Imon is int16
Added to main:
setup_adc_ports(sAN2);
setup_adc(ADC_CLOCK_DIV_2|ADC_TAD_MUL_0);
-----
imon = read_adc; //read ADC
------

I did send an email to CCS but I was wondering if anyone had any idea what this was about.

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 16, 2014 10:05 pm     Reply with quote

Your code is missing the function brackets after read_adc:
Quote:
imon = read_adc(); //read ADC

Ideally, it should not throw an Internal Error. It should be something
cleaner. Hopefully they will fix it.
spl



Joined: 16 Jul 2014
Posts: 2

View user's profile Send private message

PostPosted: Wed Jul 16, 2014 10:32 pm     Reply with quote

That fixed it. Thanks very much.
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