Go to Post Building a drone during Ri3D is going to be a challenge... - Ginger Power [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-01-2007, 16:14
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Hi, I need some help with the MPLAB IDE...

Hello,
Here is my problem:

Everytime I try to Build my project (to hex file) I have the next error:

".........
.........
........
.........
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - Coff file 'AARG.O' does not appear to be a valid COFF file.
Error - Could not build member 'AARG.O' in library file './clib.lib'.
Errors : 2


BUILD FAILED: Tue Jan 02 23:04:19 2007 ".

I dont know how to solve this problem, because in my school I dont have this problem, and I use the same code. Even when I use Default Code, it doesnt work at my home.

Im new to the FIRST competition, so i dont know the MPLAB well yet, so anyone can help me here..?

Thanks.. A lot.
To contact me through email: nbtk123@gmail.com,
MSN: razer@hotmail.co.il
  #2   Spotlight this post!  
Unread 02-01-2007, 16:18
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Hi, I need some help with the MPLAB IDE...

Wow, weird. It's trying to pass a .O file to the COFF reader? Hmm...try a clean build--delete all .O files from the directory and try again. After that, if it was me, I'd re-install MPLAB.

That's the strangest thing I've seen yet...
JBot
__________________
Aren't signatures a bit outdated?
  #3   Spotlight this post!  
Unread 02-01-2007, 16:22
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Hi, I need some help with the MPLAB IDE...

Are you sure you are using version 2.4 of mcc18? I think that might be the issue.
  #4   Spotlight this post!  
Unread 02-01-2007, 17:01
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,855
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: Hi, I need some help with the MPLAB IDE...

I'll backup Chris on his answer.
That error message indicates that at home you are using a Microchip compiler later than the c18 v2.4 we are using for FIRST. You must use the same compiler version you have at school. It was sent to your team on a CD in the Kit-Of-Parts.

You cannot use the latest version of the Microchip compiler, because it is incompatible with the ifi libraries compiled under the older v2.4.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 03-01-2007, 01:53
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Re: Hi, I need some help with the MPLAB IDE...

Maybe.. Because at school I have MPLAB IDE 7.20, and at home its 7.30.
I had a problem with my C18 Compiler so I took the compiler from school (on a flash disk) and I put it at home.

At school i use code v2.2, and at home too... Do you think that my problem is different versions...? at school i could load a 2.4 code with MPLAB IDE 7.20...
thanks
  #6   Spotlight this post!  
Unread 03-01-2007, 02:12
Cjmovie's Avatar
Cjmovie Cjmovie is offline
1293 Resident Hacker
AKA: Christopher Corsi
FRC #1293 (D5 Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SC
Posts: 73
Cjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to all
Re: Hi, I need some help with the MPLAB IDE...

Quote:
Originally Posted by razer View Post
Maybe.. Because at school I have MPLAB IDE 7.20, and at home its 7.30.
I had a problem with my C18 Compiler so I took the compiler from school (on a flash disk) and I put it at home.

At school i use code v2.2, and at home too... Do you think that my problem is different versions...? at school i could load a 2.4 code with MPLAB IDE 7.20...
thanks
You're referring to the version of the IDE, which is just the nice interface. You need to worry about the compiler, which is version 2.4 or 3.x. The 3.x won't work with FIRST code, and seems to be the version you have at home. The 2.4 version is what you have at school, and does work with FIRST code.

You'll need either the original installation disk or to copy the c:\mcc18 directory (that's the install location, by default, of the MPLAB C18 compiler).
__________________
D5 Robotics, Team 1293: Programmer, CAD'er, Mechanical, Electrical... I've made my rounds.
Events: 2006-2009 Palmetto Regional
Website: http://d5robotics.org/
  #7   Spotlight this post!  
Unread 03-01-2007, 08:21
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,855
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: Hi, I need some help with the MPLAB IDE...

Quote:
Originally Posted by razer View Post
I had a problem with my C18 Compiler so I took the compiler from school (on a flash disk) and I put it at home.
The error message you saw means the the compiler version you're running at home (copied from school) isn't the same version as the libraries you're pulling in from mcc18/lib.
Could be because you didn't take the whole mcc18 directory from school as Cjmovie suggested, or could be because MPLAB is pointing to parts of your original home C18 directory or your original C18 compiler.

To check the latter:
-- look in MPLAB under Project->Build Options->Project and see if the directory paths listed there point to the correct C18 version.
-- look in MPLAB under Project -> Select Language Toolsuite to see if each of the directory paths for every tool is where it should be.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-01-2007 at 08:25.
  #8   Spotlight this post!  
Unread 03-01-2007, 11:06
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Hi, I need some help with the MPLAB IDE...

I believe you get download a student version of C18 complier v2.4 from www.microchip.com, but i haven't looked for it. You just need to make sure that is is v2.4.
__________________
Eric Haskins KC9JVH
  #9   Spotlight this post!  
Unread 04-01-2007, 06:47
razer razer is offline
Registered User
FRC #1690
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 24
razer is an unknown quantity at this point
Re: Hi, I need some help with the MPLAB IDE...

OK I started everything from the beginning...
I removed my MPLAB 7.20
and the C18 too.

Then I downloaded & istalled the MPLAB 7.20 & MPLAB C18 from this link:

https://jvex-robotics.dev.java.net/ToolChainSetup.html

it works now, but something is weird:
When I installed it on D drive it didnt work, It says that it couldnt find the file clib.lib... But now it's installed on C drive it wroks... anybody knows the reason?

thanks a lot... now im OK
  #10   Spotlight this post!  
Unread 04-01-2007, 07:47
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Hi, I need some help with the MPLAB IDE...

As Mark said above you would have to direct MPLAB to look for the C18 header files in a different location not the default c:\mcc18
Quote:
-- look in MPLAB under Project->Build Options->Project and see if the directory paths listed there point to the correct C18 version.
-- look in MPLAB under Project -> Select Language Toolsuite to see if each of the directory paths for every tool is where it should be.
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
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 HELP Idaman323 Programming 2 16-02-2005 18:01
need some help with the OI, and wiring a display pryoplasm Control System 8 10-03-2004 20:46
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24
I need some help with scouting archiver 2001 18 24-06-2002 01:28


All times are GMT -5. The time now is 20:55.

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