Go to Post Well, John V-Neun still has a little bit of hair. Maybe it'll be an astroturf field? - Amanda Morrison [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 02-02-2004, 16:03
ZeoFateX ZeoFateX is offline
Registered User
None #0637
Team Role: Communications
 
Join Date: Feb 2004
Rookie Year: 2000
Location: NJ
Posts: 14
ZeoFateX is on a distinguished road
Unhappy Need Help: Build/Make Error

I'm not the programmer for the team, but none of them signed up for an account at Chief Delphi -- so I'm posting for them.

We get the following error when we try to compile the program using MPLAB...

Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -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" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\First\EDU_Default_Code_2003-12-15\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Feb 02 15:47:54 2004

We've searched and searched and found no-one else referring to this error (probably a stupid mistake). We DO have the include and library directory set up in Project-->Build Options-->Project (C:\mcc18\h and C:\mcc18\lib), it just won't work =\.

Any help would be greatly appreciated!

Thanks,

Greg Zanone and Team 637
  #2   Spotlight this post!  
Unread 02-02-2004, 16:21
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: Need Help: Build/Make Error

Quote:
Originally Posted by ZeoFateX
I'm not the programmer for the team, but none of them signed up for an account at Chief Delphi -- so I'm posting for them.

We get the following error when we try to compile the program using MPLAB...

Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -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" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\First\EDU_Default_Code_2003-12-15\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Feb 02 15:47:54 2004

We've searched and searched and found no-one else referring to this error (probably a stupid mistake). We DO have the include and library directory set up in Project-->Build Options-->Project (C:\mcc18\h and C:\mcc18\lib), it just won't work =\.

Any help would be greatly appreciated!

Thanks,

Greg Zanone and Team 637
Greg,

Line 1288 is designed to give you an error if the ifi_picdefs.h file has been loaded more than once (BANKED = 1). However, I am not sure how you did it...

Regards,
__________________
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 02-02-2004, 16:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Need Help: Build/Make Error

Quote:
Originally Posted by ZeoFateX
C:\First\EDU_Default_Code_2003-12-15\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Feb 02 15:47:54 2004
Is this the unadulterated EDU default code?

As you can see from the error message, the error you are seeing is due to line 1288 in ifi_picdefs.h. It's finding that you've defined the macro BANKED when you shouldn't have. As you can see in ifi_defs.h BANKED is defined after this check. It's unclear how you were able to do this.
Possible explanations include:
- The files have been corrupted or modified in some way.
- You built a new project incorrectly or missed a file.
- You commented out the lines:
Code:
#ifndef __ifi_picdefs_h_
#define __ifi_picdefs_h_
AND included ifi_picdefs.h twice in one file.

This is what a successful compile of that default code should look like:
Code:
Deleting intermediary files... done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast.c" -fo="user_routines_fast.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mplink.exe" /l"c:\mcc18\lib" "18f8520user.lkr" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_utilities.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\main.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\printf_lib.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_startup.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\user_routines.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\user_routines_fast.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_library.lib" /m"EduCode.map" /o"EduCode.cof"
MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

MP2COD 3.40, COFF to COD File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

MP2HEX 3.40, COFF to HEX File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors    : 0

Loaded C:\FIRST\EDU\EDU_Default_Code_2003-12-15\EduCode.cof
BUILD SUCCEEDED: Mon Feb 02 16:26:37 2004
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2004 at 07:53.
  #4   Spotlight this post!  
Unread 02-02-2004, 19:12
ZeoFateX ZeoFateX is offline
Registered User
None #0637
Team Role: Communications
 
Join Date: Feb 2004
Rookie Year: 2000
Location: NJ
Posts: 14
ZeoFateX is on a distinguished road
Cool Re: Need Help: Build/Make Error

Thanks, I'll see if this helps after school tomorrow. We've been going bonkers trying to figure out what was wrong lol.

Thanks,

Greg
  #5   Spotlight this post!  
Unread 03-02-2004, 11:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Need Help: Build/Make Error

Quote:
Originally Posted by ZeoFateX
Thanks, I'll see if this helps after school tomorrow. We've been going bonkers trying to figure out what was wrong lol.

Thanks,

Greg
Oops!
There's a more reasonable explaination I brushed over.

You may have defined BANKED somewhere in your code.
e.g.,
Code:
#define BANKED 999

#include "ifi_default.h"
//or
#include "ifi_picdefs.h"
would also cause the problem you saw.

This would conflict with the #define BANKED IFI created in ifi_defpics.h.
You have to make sure you don't declare macros, variables, routines, etc. by the same name used elsewhere. If this is what you did, you'd normally get a duplicate declaration error, but you happened to pick a define that's used for an error check and got that error message first.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2004 at 14:26.
  #6   Spotlight this post!  
Unread 03-02-2004, 15:19
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Need Help: Build/Make Error

I counted the characters in the path/file name and you should be fine, but just as a possiblilty, you may be exceeding the 64 character limit on the path/file name in some other file. It probably isn't that, but if all else fails...
__________________

  #7   Spotlight this post!  
Unread 03-02-2004, 15:45
ZeoFateX ZeoFateX is offline
Registered User
None #0637
Team Role: Communications
 
Join Date: Feb 2004
Rookie Year: 2000
Location: NJ
Posts: 14
ZeoFateX is on a distinguished road
Re: Need Help: Build/Make Error

Ok I'm at school now, we tried downloading the files over again, and this time we have a different error:

Code:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -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" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\FIRST 2004\user_routines.c:191:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Tue Feb 03 15:42:53 2004
Which points to:

Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Commenting this line allows us to compile without errors, but this obviously is not the right way to go because errors are not something (visible or not) which we want lol.

We're seriously having problems considering nothing was changed...

Last edited by ZeoFateX : 03-02-2004 at 15:48.
  #8   Spotlight this post!  
Unread 03-02-2004, 16:05
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: Need Help: Build/Make Error

Quote:
Originally Posted by ZeoFateX
...BUILD FAILED: Tue Feb 03 15:42:53 2004[/code]

Which points to:

Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Commenting this line allows us to compile without errors, ...
Please read http://www.chiefdelphi.com/forums/sh...=generate_pwms which may help...
__________________
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...
  #9   Spotlight this post!  
Unread 03-02-2004, 16:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Need Help: Build/Make Error

Quote:
Originally Posted by ZeoFateX
Ok I'm at school now, we tried downloading the files over again, and this time we have a different error:

Code:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -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" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\FIRST 2004\user_routines.c:191:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Tue Feb 03 15:42:53 2004
Which points to:

Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Commenting this line allows us to compile without errors, but this obviously is not the right way to go because errors are not something (visible or not) which we want lol.

We're seriously having problems considering nothing was changed...
This is FRC code, whereas, before you talked about EDU code.
What default code are you using and which controller?
The code looks like the FRC default code.

If you are loading the FRC default code onto the FRC then you might be missing a macro setting in MPLAB.

In MPLAB go to Project -> Build Options... -> Project
Click the "MPLAB C18" tab on the pop-up window that appears.
and see if "_FRC_BOARD" is defined under Macro definitions.

If not, click on "Add" and type in "_FRC_BOARD", click OK, close the pop-up windows and try building again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2004 at 16:39.
  #10   Spotlight this post!  
Unread 04-02-2004, 10:56
ZeoFateX ZeoFateX is offline
Registered User
None #0637
Team Role: Communications
 
Join Date: Feb 2004
Rookie Year: 2000
Location: NJ
Posts: 14
ZeoFateX is on a distinguished road
Talking Re: Need Help: Build/Make Error

Loaded C:\FIRST 2004\FIRST 2004.cof
BUILD SUCCEEDED: Wed Feb 04 10:54:12 2004

Thanks ^_^

Team 637
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 startup error Team 869 Programming 6 25-01-2004 10:41
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43
EMERGENCY! EPROM FULL error?!? CHSguard72 Programming 2 05-03-2003 20:51
Basic Run Error Ulibrium Programming 12 21-02-2002 01:02
programming error agenova Programming 1 20-02-2002 13:00


All times are GMT -5. The time now is 03:57.

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