Log in

View Full Version : error - Invalid 18f8520 header file!


vtrehan
15-11-2004, 21:28
hey

I was having a problem building our last years code, but cant guess why as the error belongs to a First defined header file..... here have a look:

Clean: Done.
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast.c" -fo="user_routines_fast.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
G:\VT\robotics\Theory 6 code 0.0.0.0\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning g:\vt\robotics\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Nov 15 20:43:57 2004



any help would be appriciated.

Joshua May
15-11-2004, 22:37
Try replacing the file in the folder with the original file from IFI's website, maybe something got messed up in your copy of the file.

Mark McLeod
16-11-2004, 08:31
Executing: "g:\vt\robotics\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
G:\VT\robotics\Theory 6 code 0.0.0.0\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning g:\vt\robotics\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Nov 15 20:43:57 2004

I've seen this one before, see if any of this discussion helps.
http://www.chiefdelphi.com/forums/showthread.php?t=24677

My immediate suspicion is an incorrect MPLAB setting.