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

lcd.c changes from 3.x to 4.x...

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



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

lcd.c changes from 3.x to 4.x...
PostPosted: Sat Mar 21, 2009 9:50 am     Reply with quote

I have just upgraded from 3.249 to 4.088. I wanted to go back through some of my old programs to recompile them with the new compiler version to verify everything still works OK (maintaining old code).

While the majority of programs were recompiled successfully, I am having problems with any of my programs which used the lcd.c functions. I get compiler errors. I remember this was a problem when upgrading versions of 3.x, also, and I had to uncomment the line to route the lcd port pins to execute through Port B as opposed to the default Port D, since I was using a PIC18LF2620 part. There seems to be a new version of the lcd.c code now, though, and it doesn't seem to work.

Has anyone else run across this condition? If so, have you determined a solution?

Thanks.


Dave
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 21, 2009 10:37 am     Reply with quote

Temporarily re-install your old version of the compiler. Copy the lcd.c
file from the \Drivers directory to your project directory. (Rename it
if you wish). Then change the #include line in your main C source file
for lcd.c to use quotes instead of angle brackets. This will pull the it
from your project directory instead of from \Drivers. Add a comment
as a reminder as to why you did this.

Then re-install the new compiler.
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

PostPosted: Sat Mar 21, 2009 5:05 pm     Reply with quote

Thanks very much for that. It works like a charm!

In looking at the new lcd.c file, it appears to have a lot more flexibility in that the I/O pins used for the LCD function don't need to be grouped on one Port if using pin access. This looks like it will probably the best way for coding new programs using the LCD functionality.

I noticed I had several warning messages which didn't show up in the 3.x version, also. Most were associated with return values from ISRs, I2C functions, etc. Is there a summary somewhere describing the general coding changes from 3.x needed for "correct" compilation under 4.x.

Thanks, again.


Dave
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