Go to Post To quote Harrison Ford: "Never tell me the odds". - [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 01-16-2008, 05:37 PM
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Default code will not compile

We migrated to a new computer this year, so I installed v8.00 of MPLAB and v2.40 of the compiler. These are the errors:

Quote:
Error - Coff file firmat for 'ifi_library.o' is out of date.
Error - Could not build member 'ifi_library.o' in library file 'C:\Code\Proj\deault\FRC_library_8722.lib'
  #2   Spotlight this post!  
Unread 01-16-2008, 05:44 PM
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Default code will not compile

Quote:
Originally Posted by bronxbomber92 View Post
We migrated to a new computer this year, so I installed v8.00 of MPLAB and v2.40 of the compiler. These are the errors:
a quote for IFI robotics site "You must use MPLAB ver 7.20 and C18 Compiler ver 2.40 (newer versions can not be used)"

Not sure why this is but it still applies

Steve

Last edited by Steve_Alaniz : 01-16-2008 at 05:44 PM. Reason: correction
  #3   Spotlight this post!  
Unread 01-16-2008, 06:15 PM
mtndurbin mtndurbin is offline
Programming Mentor
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Colorado Springs, CO
Posts: 8
mtndurbin is an unknown quantity at this point
Re: Default code will not compile

There is a version of the base code that will compile with the new compiler
and IDE. It can be found on the Kevin Watson site.

http://www.kevin.org/frc look for the zip file ifi_frc_30.zip.

The libraries are on this site also. We are using the 3.0 compiler successfully.

I am the programming mentor for Team 662 Rocky Mountain Robotics.
  #4   Spotlight this post!  
Unread 01-16-2008, 07:42 PM
Pulverator's Avatar
Pulverator Pulverator is offline
Registered User
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Naples
Posts: 8
Pulverator is an unknown quantity at this point
Re: Default code will not compile

Thanks guys/gals!

I've downgraded to 7.20 and that error is now gone

But... I get a new error.

In user_routines.c, line 193
Code:
Error [1203] too few arguments in function call
So, I went to find the Generate_Pwms(), and I see there are 2 prototypes. One or the other is compiled depending on the macro _FRC_BOARD. So, I assume the is being set wrongly - somewhere. Of course, I'm not sure.

Btw, I couldn't open the default code project because the file format of the workspace was incompatible so I created a new project and added the files to that.

Edit - This is bronxbomber92 posting under a teammates account.

Edit 2 - I just tried compiling Kevin's 2.40 beta code ( I could't open the workspace like above, so I made a new workspace again). I get an error saying
Code:
could not find file clib.lib
What am I doing wrong!?!? Something must be seriously screwed up...

Last edited by Pulverator : 01-16-2008 at 07:56 PM.
  #5   Spotlight this post!  
Unread 01-16-2008, 10:30 PM
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,697
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: Default code will not compile

Quote:
Originally Posted by Pulverator View Post
So, I went to find the Generate_Pwms(), and I see there are 2 prototypes. One or the other is compiled depending on the macro _FRC_BOARD. So, I assume the is being set wrongly - somewhere. Of course, I'm not sure.

Edit 2 - I just tried compiling Kevin's 2.40 beta code ( I could't open the workspace like above, so I made a new workspace again). I get an error saying
Code:
could not find file clib.lib
What am I doing wrong!?!? Something must be seriously screwed up...
Nothing drastically wrong.
In the first case _FRC_BOARD was used to switch between the FRC and the old Edu controller. The macro used to be defined in MPLAB build options. You can add it under the complier tab or just add "#define _FRC_BOARD" to the code before it gets referenced.

In the second case when you built your new project you didn't set the path where MPLAB is to look for the libraries (mcc18/lib). Also under build options.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 01-18-2008, 04:11 PM
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: Default code will not compile

Thanks. I did add mcc18\lib to my include path before, but it then gave me another linking error:

Quote:
Error - processor types do not agree across all input files.
What shall I do next? That error suggest that possibly I building for the wrong PIC architecture?
  #7   Spotlight this post!  
Unread 01-18-2008, 04:46 PM
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: Default code will not compile

I fixed the problem!! The problem was that the old 8522 linker scripts were still in the project and I believed those were being used instead.
  #8   Spotlight this post!  
Unread 01-18-2008, 06:44 PM
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,697
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: Default code will not compile

Quote:
Originally Posted by bronxbomber92 View Post
The problem was that the old 8522 linker scripts were still in the project and I believed those were being used instead.
I hate when that happens...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
Code Won't Compile in MPLab with WPILib Inverted Programming 1 02-20-2007 10:12 PM
Do not know where to get default code ZookieWookie Programming 4 02-13-2007 05:23 PM
CMUcam default code not responding Kyveck Programming 29 01-26-2006 04:25 PM
2005 default code won't compile Robby Programming 22 02-04-2005 06:21 PM
Can't Compile the Default Code pressurex1 Programming 4 01-25-2004 08:26 PM


All times are GMT -5. The time now is 08:37 AM.

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