Go to Post Yes, in human nature we like to get rewarded/recognized for things we do; however, you should not have to rely on this to be "successful". Remember the purpose of FIRST - To change our culture. - tim-tim [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 22-01-2008, 15:57
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Errors compiling Kevin's new code (pragmas)

hey guys, trying to compile kevin's code (made changes to default_routines only), getting some errors in MPLAB.
Quote:
258: warning [2002] Unknown pragma 'tmpdata'
249: Error [1020] Unexpected input folowing 'interrupt'
364: warning [2002] Unknown pragma 'tmpdata'
Can anyone help?

Also, what exactly is a pragma? I've never dealt with them before, so help is greatly appreciated.


PS- If I comment off the three lines that cause errors, it gives me
Quote:
442: Error [1111] undefined label '_FPFLAGS' in '_startup'
__________________
Team 2052- KnightKrawler
Mentor and volunteer

Last edited by Bryan Herbst : 22-01-2008 at 16:08.
  #2   Spotlight this post!  
Unread 22-01-2008, 16:04
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Are you compiling his code for the 3.x compiler with the 2.4 compiler?
  #3   Spotlight this post!  
Unread 22-01-2008, 16:15
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

That's probably it. I thought we had updated it, but apparently not. I'll post back here if that doesn't fix it.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #4   Spotlight this post!  
Unread 22-01-2008, 16:57
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Okay, that fixed the original issues.

Now however, when it gets to the last linking step (COFF to HEX), it pops up "failed to load file xxxxx.cof."

The COFF file is right there in the folder, and it can find it when it is cleaning up the files when I try to build it again. Any ideas?


Update- After done building, the output screen occasionally returns "Error: bad magic number in Coff file xx/xx/autonomous.o"
__________________
Team 2052- KnightKrawler
Mentor and volunteer

Last edited by Bryan Herbst : 22-01-2008 at 17:05.
  #5   Spotlight this post!  
Unread 22-01-2008, 17:07
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,394
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

On the project check the build options to make sure they are the right paths.

Clean sometimes will get something via a different path that the linker won't see.
  #6   Spotlight this post!  
Unread 22-01-2008, 17:15
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Which paths?

The linker and lib paths are the defaults (C:\mcc18\[lib or lkr]). I tried to manually set the output directory to the correct directory, but it changed nothing.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #7   Spotlight this post!  
Unread 22-01-2008, 17:22
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Quote:
Originally Posted by Tanis View Post
Update- After done building, the output screen occasionally returns "Error: bad magic number in Coff file xx/xx/autonomous.o"
If the "magic number" is different across the project it means somewhere you've got a piece of code compiled with the wrong compiler version and the linker gets unhappy. My guess is that you're trying to link everything together with the 3.1 tools, but have the wrong version (i.e., 2.4) of the ifi_frc.lib file.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 23-01-2008, 15:58
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

I downloaded the simple C18 3.0 code from your site, so I assume the ifi_frc file is up to date.

If it helps at all, if I download the hex file that appears (but is definitely not complete) to the bot, all the OI's pwm, realy, and switch lights turn on.


Finally, printf almost always returns one of a few errors, no matter what I'm printing. Any suggestions as to why? Not entirely sure of specific errors, I'll edit if I come across one again.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #9   Spotlight this post!  
Unread 25-01-2008, 15:15
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Sorry, missed the editing window.

Anyways, where can I find the update ifi_frc.lib file? I have ifi_frc_8722.lib and ifi_frc_8520.lib, but no ifi_frc.lib, ifi_frc.lib.


I checked kevin's page, and the ifi robotics page, but couldn't find it.

Thanks!
__________________
Team 2052- KnightKrawler
Mentor and volunteer

Last edited by Bryan Herbst : 25-01-2008 at 15:26.
  #10   Spotlight this post!  
Unread 25-01-2008, 17:36
Spider-Man's Avatar
Spider-Man Spider-Man is offline
Curling Rocks
AKA: Adam Jacobson
FRC #0467 (DTB/Shrewsbury Colonials); #0034 (Rocket City Robotics)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2000
Location: Shrewsbury, MA USA
Posts: 86
Spider-Man has a spectacular aura aboutSpider-Man has a spectacular aura about
Re: Errors compiling Kevin's new code (pragmas)

The numbers in the file correspond to a specific version of the robot controller. The current controller version as of 2006 is 8722, which is the one you want.

In the Library Files area of your project you want the downloaded ifi_frc_8722.lib compiled with C18 3.0+. Also, make sure that your linker script is the 18f8722.lkr.

Hope that helps.
__________________
Student [2000 - 2001] Team 34 Rocket City Robotics
Plays Well With Others
2000 VA - Delphi "Driving Tomorrow's Technology"
2000 CMP - Top 5 Autodesk Visualization
2001 TX - Regional Finalist

Mentor [2004 - 2005][2007 - ????] Team 467 Shrewsbury Colonials (nee Duct Tape Bandits)
We Not Me
2004 LI - DaimlerChrysler Team Spirit
2004 LI - Website Design
2005 MD - Delphi "Driving Tomorrow's Technology"
2007 MA - Johnson & Johnson Sportsmanship
2008 CT - Judges' Award
2008 PA - Judges' Award

2010 MA - Judge's Award[/size][/font]
2012 DC - Chrysler Team Spirit[/size][/font]
2012 DC - Regional Winners[/size][/font]
2013 MAWO - Engineering Inspiration[/size][/font]
  #11   Spotlight this post!  
Unread 25-01-2008, 22:14
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Errors compiling Kevin's new code (pragmas)

Yes, we are using the 8722 lib and lkr files.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #12   Spotlight this post!  
Unread 31-01-2008, 12:50
FireJet FireJet is offline
Registered User
AKA: Jero Sutlovic
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Burlington, Ontario
Posts: 8
FireJet is an unknown quantity at this point
Re: Errors compiling Kevin's new code (pragmas)

I'm having the same problem with the new default 2008 code. Everything compiles fine, but I keep getting the error that it "Failed to load project.cof". I've made sure that the library and linker include paths were right, and using the correct linker/library versions.
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
Problem with Kevin's code Tottanka Programming 5 04-11-2007 13:32
Disabling Vex compiling errors jcsymmes Programming 2 03-06-2006 01:54
Kevin's Code? winners Programming 5 27-01-2006 16:32
Question about kevin's code ImmortalAres Programming 3 23-06-2005 11:13
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 00:50.

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