proteus error on c compiler ...

Thread Starter

وائل فتحي

Joined Jan 20, 2016
2
i have downloaded evaluation version of the compiler high-tech c compiler from micrchip for pic 18


i find nice code in this link it is simple code that shows some characters on lcd http://www.rhydolabz.com/wiki/?p=9711


i managed to allow proteus use and find the high-tech c because it only have the assembly compiler pre-installed


however when compiling the 100 percent correct i code i was suprised with these errors


the only thing i did as that i have delected all the the writings pre-written in the compiler and paste the code for the program in link


i am good at assembly but it is tedious and it is time to use c ...however it was very awkward start

so this is what i get can you tell me what is wrong
--------------------------------------------------------------------------------------------------------------------------------------





picc18.exe --pass1 --errformat="Error at file %%f line %%l column %%c: (%%n) %%s" --warnformat="Warning at file %%f line %%l column %%c: (%%n) %%s" --msgformat="Message at file %%f line %%l column %%c: (%%n) %%s" -D_XTAL_FREQ=1000000 -G --chip=18F4580 -O"main.p1" "../main.c"
Licensed for evaluation purposes only.
This licence will expire on Sat, 20 Jan 2018.
HI-TECH C Compiler for PIC18 MCUs (PRO Mode) V9.80
Copyright (C) 2011 Microchip Technology Inc.
Message at file line column : (1233) Employing 18F4580 errata work-arounds:
Message at file line column : (1234) * Corrupted fast interrupt shadow registers
Warning at file ../main.c line 39 column 1: (361) function declared implicit int
Warning at file ../main.c line 53 column 8: (1385) variable "RC0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16042)
Warning at file ../main.c line 54 column 8: (1385) variable "RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044)
Warning at file ../main.c line 56 column 8: (1385) variable "RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044)
Warning at file ../main.c line 69 column 8: (1385) variable "RC0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16042)
Warning at file ../main.c line 70 column 8: (1385) variable "RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044)
Warning at file ../main.c line 72 column 8: (1385) variable "RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044)
picc18.exe --output=mcof -G --chip=18F4580 -O"Debug.cof" "main.p1"
../main.c: 53: (1385) variable "_RC0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16042) (warning)
../main.c: 54: (1385) variable "_RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044) (warning)
../main.c: 56: (1385) variable "_RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044) (warning)
../main.c: 69: (1385) variable "_RC0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16042) (warning)
../main.c: 70: (1385) variable "_RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044) (warning)
../main.c: 72: (1385) variable "_RC1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f4580.h:16044) (warning)
: 0: (499) undefined symbol:
_Send2LCD(Debug.obj)
Licensed for evaluation purposes only.
This licence will expire on Sat, 20 Jan 2018.
HI-TECH C Compiler for PIC18 MCUs (PRO Mode) V9.80
Copyright (C) 2011 Microchip Technology Inc.
Employing 18F4580 errata work-arounds:
* Corrupted fast interrupt shadow registers
(908) exit status = 1
make: *** [Debug.cof] Error 1

Error code 2
 
Top