|
|
View previous topic :: View next topic |
Author |
Message |
Mauricio Lopes
Joined: 11 Oct 2006 Posts: 5
|
ICD 2 + MPLAB and CCS plugin |
Posted: Tue Nov 21, 2006 6:06 am |
|
|
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
|
|
Posted: Tue Nov 21, 2006 11:17 am |
|
|
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
|
|
Posted: Tue Nov 21, 2006 11:30 am |
|
|
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
|
|
Posted: Tue Nov 21, 2006 12:28 pm |
|
|
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. |
|
|
|
|
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
|