Go to Post Messy wires are a pain in the chassis - [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2005, 05:29
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
MPLAB build error

This is pretty sad, I know. But does anyone know what this means? And how to solve it?


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F8520 "asm_lib.asm" /l"asm_lib.lst" /e"asm_lib.err" /o"asm_lib.o" /d_FRC_BOARD
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"c:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" /i"c:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
D:\Jan8code\ifi_picdefs.h:1289:Error [1099] *** Error - Invalid 18f8520 header file!
Halting build on first failure as requested.
BUILD FAILED: Mon Jan 10 00:40:29 2005

That's the error I got while trying to build (compile) the DEFAULT code! I did not modify the picdefs header file so I don't know why this error would come up. Did I install the program wrong or something? I also tried compiling the camera code from the innovation first website and it isn't working. Did anyone sucessfully download and use the camera code yet?
  #2   Spotlight this post!  
Unread 10-01-2005, 07:19
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: MPLAB build error

Interesting... It compiles ifi_startup.c OK. Startup uses the same file... You have something else wrong...Did you change anything at all?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 10-01-2005, 09:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,829
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: MPLAB build error

We this error turned up on the forums during the season last year, but it reportedly "went away." You can seach on "banked" to easily locate that conversation.

What seems to be happening is the #define __ifi_picdefs_h_ is lost by the second time ifi_picdefs.h is included.
or
You've added a #define of your own for BANKED.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-01-2005 at 09:57.
  #4   Spotlight this post!  
Unread 10-01-2005, 10:42
BrianJennings BrianJennings is offline
Sleep is optional
None #1519 (Mechanical Mayhem)
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Merrimack
Posts: 24
BrianJennings is an unknown quantity at this point
Send a message via AIM to BrianJennings
Re: MPLAB build error

Do you have the C182.4 compiler? It might be trying to get a Lib or Include that it doesn't have. Just a thought....
__________________
"it's googleable " -- the_undefined
  #5   Spotlight this post!  
Unread 10-01-2005, 14:01
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: MPLAB build error

I haven't changed anything to the default code. I'll try downloading the default code again to see if I accidentally modified it. I also want to try uninstalling the programs and reinstalling them later on today. Here's the steps that I followed:

1) Install MPLAB IDE v7.00
2) Install C18 v2.4 compiler
3) Install IFI Loader (newest one from innovation first)

Are these the steps that you guys followed?

Also, just a question, what does this do exactly.. #define __ifi_picdefs_h_?
I see the #define _"filename"_ command at the top of every header file.
  #6   Spotlight this post!  
Unread 10-01-2005, 14:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,829
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: MPLAB build error

Quote:
Originally Posted by cabbagekid2
I haven't changed anything to the default code. I'll try downloading the default code again to see if I accidentally modified it. I also want to try uninstalling the programs and reinstalling them later on today. Here's the steps that I followed:

1) Install MPLAB IDE v7.00
2) Install C18 v2.4 compiler
3) Install IFI Loader (newest one from innovation first)

Are these the steps that you guys followed?

Also, just a question, what does this do exactly.. #define __ifi_picdefs_h_?
I see the #define _"filename"_ command at the top of every header file.
The installation order is the same I followed.

The sequence:
Code:
#ifndef __ifi_picdefs_h_
#define __ifi_picdefs_h_
is to prevent the include file from being loaded twice by the file that's being compiled. The first time the file is loaded that #define doesn't exist, so if the compiler sees that file loaded a second time (when the #define has now been declared) it knows to skip over the whole include because it's already been done. This is typically a potential issue when you use nested includes.

You're getting your problem when ifi_utilities.c pulls in ifi_default.h (via the include statement) which in turn includes ifi_picdefs.h
This shouldn't be a problem, but what seems to be happening is that something is remembering the define BANKED (used only within ifi_picdefs.h) from the previous compile of ifi_startup.c
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-01-2005 at 14:21.
  #7   Spotlight this post!  
Unread 10-01-2005, 14:14
BrianJennings BrianJennings is offline
Sleep is optional
None #1519 (Mechanical Mayhem)
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Merrimack
Posts: 24
BrianJennings is an unknown quantity at this point
Send a message via AIM to BrianJennings
Re: MPLAB build error

That is the steps that I followed. Do you have the C18 2.4 compiler? If so, PM me please... thx
__________________
"it's googleable " -- the_undefined
  #8   Spotlight this post!  
Unread 12-01-2005, 13:36
cabbagekid2 cabbagekid2 is offline
Registered User
#0368 (Kika Mana)
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Honolulu, HI
Posts: 85
cabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura aboutcabbagekid2 has a spectacular aura about
Re: MPLAB build error

Quote:
Originally Posted by BrianJennings
That is the steps that I followed. Do you have the C18 2.4 compiler? If so, PM me please... thx

Have you downloaded the new compiler yet? If not, it's posted on the FIRST site, and the link works!

Also, I finally got the code compiled by uninstalling the programs and just installing the ones included on the CD (rather than the upated ones).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLAB IDE 6.60 Error mchan1111 Programming 8 08-11-2004 20:17
OCCRA Teams - where do you build? Phil 33 OCCRA 7 28-10-2004 21:41
MPlab error ryan_f Programming 9 24-05-2004 07:30
Error message in MPLAB IDE dddriveman Programming 11 18-03-2004 06:34
Mplab startup error Team 869 Programming 6 25-01-2004 10:41


All times are GMT -5. The time now is 17:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi