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

ICD 2 + MPLAB and CCS plugin

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



Joined: 11 Oct 2006
Posts: 5

View user's profile Send private message

ICD 2 + MPLAB and CCS plugin
PostPosted: Tue Nov 21, 2006 6:06 am     Reply with quote

Hello All,

I need some help. I tried to compile a program with LCD driver(LCD.C) in MPLAB using the CCS Plugin, but it shows many error messages about the LCD driver. I think that isnt LCD driver cause its compile normally in the CCS 3.249, but it not works in MPLAB7.40.

Code:

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Arquivos de programas\PICC\Ccsc.exe" "EX_LED.C" +FM +DF +LN +T -A +M -Z +ICD +Y=9 +EA
*** Error 12 "C:\ARQUIV~1\PICC\drivers\LCD.C" Line 100(7,15): Undefined identifier  -- delay_us
*** Error 12 "C:\ARQUIV~1\PICC\drivers\LCD.C" Line 112(7,15): Undefined identifier  -- delay_us
*** Error 12 "C:\ARQUIV~1\PICC\drivers\LCD.C" Line 137(5,13): Undefined identifier  -- delay_ms
*** Error 12 "C:\ARQUIV~1\PICC\drivers\LCD.C" Line 140(8,16): Undefined identifier  -- delay_ms
*** Error 12 "C:\ARQUIV~1\PICC\drivers\LCD.C" Line 162(20,28): Undefined identifier  -- delay_ms
      5 Errors,  0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Tue Nov 21 09:54:59 2006


Thanks a Lot.
Mauricio Lopes
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Tue Nov 21, 2006 11:17 am     Reply with quote

Hi,

I use MPLAB 7,40 , ICD 2 and CCS Compiler 3,249 without problem.

Post the program.

Regards,
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 21, 2006 11:30 am     Reply with quote

These error messages show that the delay_us() and delay_us()
statements in LCD.c can't find the CCS delay library. This can
happen if you put the #include statement for LCD.c in the wrong
location. It must be placed below the #use delay() statement.

You should put it in the location shown in bold below:
Quote:
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

#include <lcd.c>
Mauricio Lopes



Joined: 11 Oct 2006
Posts: 5

View user's profile Send private message

PostPosted: Tue Nov 21, 2006 12:28 pm     Reply with quote

As said as done!!!!
The problem was solved... As said by PCM Programmer, the #include line was in the wrong place...

One more time, thanks a lot....
Mauricio Lopes.
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