Go to Post If it were easy it wouldn't be worth triple the points, right? - SenorZ [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #15   Spotlight this post!  
Unread 13-05-2006, 22:19
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,803
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: Programming Vex w/ MPLab

Sorry, I got dragged away before I could finish my answer last night.

The root cause of the problem you see is there are way too many files included as part of the project. The Vex starter code folder actually contains several different projects and variations on the projects lumped together, making it confusing. There are multiple variations of the same file included in your project. When you run Project Wizard don't include every file in your project.
Here is a more readable version (well okay, "readable" is probably an overstatement. I just put each part of the command on a separate line) of the last link step of your compile that you posted, so I can point out what I mean about duplicate files. The files sharing common colors you only want one of in your project. There are others you also don't need, including the assembly file that actually gave you the current error.
Code:
Executing: 
"C:\Program Files\Intelitek\easyC\Mcc18\bin\mplink.exe" 
/l
"C:\Program Files\Intelitek\easyC\Mcc18\lib" 
"C:\Documents and Settings\W4TK3\VexControllerProject\18f8520user.lkr" 
"C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.o" "C:\Documents and Settings\W4TK3\VexControllerProject\main.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\PicSerialDrv.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\printf_lib.o" "C:\Documents and Settings\W4TK3\VexControllerProject\user_routines.o" "C:\Documents and Settings\W4TK3\VexControllerProject\user_routines_DDT.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\user_routines_fast.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\user_routines_fast_DDT.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\asm_lib.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\ifi_startup.o" 
"C:\Documents and Settings\W4TK3\VexControllerProject\Vex_alltimers.lib" "C:\Documents and Settings\W4TK3\VexControllerProject\Vex_alltimers_auton_debug.lib" 
"C:\Documents and Settings\W4TK3\VexControllerProject\Vex_alltimers_competition.lib" 
"C:\Documents and Settings\W4TK3\VexControllerProject\Vex_library.lib" 
"C:\Documents and Settings\W4TK3\VexControllerProject\Vex_library_auton_debug.lib" 
"C:\Documents and Settings\W4TK3\VexControllerProject\Vex_library_competition.lib" 
/o"Vex Controller.cof" 
/M"Vex Controller.map"
MPLINK 3.90, LinkerCopyright (c) 2004 Microchip Technology Inc.
Error - Coff file 'C:\Documents and Settings\W4TK3\VexControllerProject\asm_lib.o' does not appear to be a valid COFF file.
Errors	: 1
I've attached a screen shot of the only files you should have in your project for starters (you can play with the differences later). Delete all the other entries from the MPLAB project by highlighting them in the MPLAB window and hitting "delete."

----------------
The actual error you got was because the assembler used is too new. It's producing the newer type of COFF. You would have seen other errors if you got past this one.

Quote:
MPSAM Assembler: C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe
I assume that you are not writing your own assembly code? So you don't need to be including any assembly files.
Attached Thumbnails
Click image for larger version

Name:	Basic_Files_Needed.jpg
Views:	114
Size:	34.7 KB
ID:	4404  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-05-2006 at 13:40. Reason: Dragged from CD to perform taxi service
Reply With Quote
 


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
how to build a VEX programming module bblack7489 FIRST Tech Challenge 78 09-06-2011 16:03
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
VEX programming Gene F Programming 14 08-08-2006 22:21
Vex bot programming Q's BaldwinNYRookie Programming 6 09-10-2005 17:45
Vex Programming foobert FIRST Tech Challenge 3 24-06-2005 01:09


All times are GMT -5. The time now is 13:07.

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