Go to Post I think Baker has lost it. - Andy Baker [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

 
Reply
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 04-05-2006, 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,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

Quote:
Originally Posted by budgiekid
I have the same problem as NoSilverman, but I've checked and the version of C18 I'm using is 2.40 (not using the one wrapped into easyC), and the paths are set correctly. I'm also using v7.31 IDE, if that makes a difference.
Your MPLAB version doesn't affect this problem. It's really a C18 Linker issue.
If you're seeing that particular error it means you are somehow pulling in pre-compiled object files that don't happen to match the compiler/linker version you are using, e.g., Vex_alltimers.lib.

What do you have set for your "Language Toolsuite" paths?
In MPLAB:
Project->Select Language Toolsuite...
then click on each of the tools: "MPLINK Object Linker" and "MPLAB C18 C Compiler" and verify the paths displayed under "Location."

Have you ever used your current setup with a full-sized robot controller or other PIC?

Without more information, such as the compiler/linker status output from a complete build from scratch, I'd recommend resetting all your paths to use everything that came with the vex kit, including the C18 compiler, e.g.,
C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe
and mplink.exe.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-05-2006 at 17:17.
Reply With Quote
  #17   Spotlight this post!  
Unread 07-05-2006, 15:30
NoSilverman NoSilverman is offline
Registered User
no team
 
Join Date: Apr 2006
Location: NYC
Posts: 2
NoSilverman is an unknown quantity at this point
Re: Programming Vex w/ MPLab

It worked, no build errors! Thank you very much.
Reply With Quote
  #18   Spotlight this post!  
Unread 13-05-2006, 11:11
W4TK3 W4TK3 is offline
Registered User
FRC #1102 (M'Aiken Magic)
 
Join Date: May 2006
Rookie Year: 2006
Location: North Augusta, SC
Posts: 3
W4TK3 is an unknown quantity at this point
Re: Programming Vex w/ MPLab

I'm having a bit of trouble getting this to work.
I set up a new project with the project wizard:
Device: PIC18F8520
Active Toolsuite: Microchip C18 Toolsuite
MPSAM Assembler: C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe
MPLINK Object Linker: C:\Program Files\Intelitek\easyC\Mcc18\bin\mplink.exe
MPLAB C18 Compiler: C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe
MPLIB Librarian: C:\Program Files\Intelitek\easyC\Mcc18\bin\mplib.exe
Project Name: Vex Controller
Project Directory: C:\Documents and Settings\W4TK3\VexControllerProject

and I imported all the files from Vex Starter Code @ http://www.vexlabs.com/vex-robotics-downloads.shtml

I get the following output when I go to project>build all:

Code:
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\W4TK3\VexControllerProject\Vex Controller.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F8520 "asm_lib.asm" /l"asm_lib.lst" /e"asm_lib.err" /o"asm_lib.o"
Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:15:Error [1027] unable to locate 'usart.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:16:Error [1027] unable to locate 'spi.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:17:Error [1027] unable to locate 'adc.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:18:Error [1027] unable to locate 'capture.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:19:Error [1027] unable to locate 'timers.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:20:Error [1027] unable to locate 'string.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_utilities.c:21:Error [1027] unable to locate 'pwm.h'
C:\Documents and Settings\W4TK3\VexControllerProject\ifi_aliases.h:18:Error [1027] unable to locate 'adc.h'
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Halting build on first failure as requested.
BUILD FAILED: Sat May 13 10:54:45 2006
What's going on and where do I get the rest of the code? (missing part its complaining about)

Last edited by W4TK3 : 13-05-2006 at 11:17. Reason: inadvertantly pressed enter
Reply With Quote
  #19   Spotlight this post!  
Unread 13-05-2006, 13:15
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

Quote:
Originally Posted by W4TK3
What's going on and where do I get the rest of the code? (missing part its complaining about)
It looks like you missed specifying the path for your system include files.
The MPLAB checks to make shown in post #10 should help.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #20   Spotlight this post!  
Unread 13-05-2006, 18:10
W4TK3 W4TK3 is offline
Registered User
FRC #1102 (M'Aiken Magic)
 
Join Date: May 2006
Rookie Year: 2006
Location: North Augusta, SC
Posts: 3
W4TK3 is an unknown quantity at this point
Re: Programming Vex w/ MPLab

Quote:
Originally Posted by Mark McLeod
It looks like you missed specifying the path for your system include files.
The MPLAB checks to make shown in post #10 should help.
Ok, I specified the path variables mentioned in post #10 and now I get the following (The error is at the end):

Code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F8520 "asm_lib.asm" /l"asm_lib.lst" /e"asm_lib.err" /o"asm_lib.o"
Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "ifi_utilities.c" -fo="ifi_utilities.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "PicSerialDrv.c" -fo="PicSerialDrv.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "printf_lib.c" -fo="printf_lib.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "user_routines.c" -fo="user_routines.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "user_routines_DDT.c" -fo="user_routines_DDT.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "user_routines_fast.c" -fo="user_routines_fast.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

Executing: "C:\Program Files\Intelitek\easyC\Mcc18\bin\mcc18.exe" -p=18F8520  /i"C:\Program Files\Intelitek\easyC\Mcc18\h" "user_routines_fast_DDT.c" -fo="user_routines_fast_DDT.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (feature limited)
Copyright 1999-2004 Microchip Technology Inc.
This version of MPLAB C18 does not support the extended mode
and will not perform all optimizations.  To purchase a full
copy of MPLAB C18, please contact your local distributor or
visit buy.microchip.com.

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\Ve
xControllerProject\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, Linker
Copyright (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

BUILD FAILED: Sat May 13 18:06:02 2006
Do I have incompatible versions of something like the person above?
Reply With Quote
  #21   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
  #22   Spotlight this post!  
Unread 14-05-2006, 13:25
budgiekid budgiekid is offline
Registered User
AKA: Katie Banks
FRC #0694
 
Join Date: May 2006
Rookie Year: 2006
Location: Brooklyn, NY
Posts: 4
budgiekid is an unknown quantity at this point
Re: Programming Vex w/ MPLab

Mark--

Thanks! The build is successful now, the extra files were the problem.

A question, though, if and when we start to write our own code for the Vex bots , what files should be included and left out so that the build is successful? Or is any code we write just going to be modifications of the default files already outlined?

Thanks again.
Reply With Quote
  #23   Spotlight this post!  
Unread 14-05-2006, 13:54
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

Quote:
Originally Posted by budgiekid
A question, though, if and when we start to write our own code for the Vex bots , what files should be included and left out so that the build is successful? Or is any code we write just going to be modifications of the default files already outlined?
I'd suggest first starting with the basic working version of the code you have now and trying modifications to it. Save working copies of the whole folder periodically, so you can easily fallback to a working version if some of your changes go terribly wrong.

If you plan on making major changes, then I'd suggest you create brand new files to put all your customized code in. Then just add those new files to your existing project. You can add whatever you want to a project, just be careful not to add two versions of the same file or routine.
For instance, we put all our autonomous code in it's own file, and we put sensor specific code in a separate file of it's own. It makes it so much easier to reuse our code in new projects when we can just include a file, such as, Line_Follower.c.

When you advance to the point where you're comfortable replacing everything with your own code, you basically need to keep or provide your own version of most (not all) of the functionality found in the files that begin with "ifi_". You need a main.c, but you can rewrite it to fit your needs. You'll also need bits and pieces from user_routines.c and user_routines_fast.c, such as, User_Initialization() and the InterruptHandlerLow(). Probably the easiest course to follow would be to first replace specific routines with your own versions. For instance, the most obvious routine to begin modifying is Default_Routine(). That's where you setup all your driving controls and responses. The next obvious routine to replace is User_Autonomous_Code().

One caution about replacing existing files. There are special files included by the code with a C statement such as:
Code:
#include "user_routines.h"
You'll see these "include" statements near the top of most c source files.
The compiler is going to go looking for a file by that exact name, in this example that would be "user_routines.h", regardless of what file name you may have used in the project list, so if you decided to replace the existing file by that name with one of your own devising and you call your's "my_user_routines.h" you'd better change all those include statements too, or the program will keep pulling in that old file even though it's not listed as part of your project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-05-2006 at 18:00.
Reply With Quote
  #24   Spotlight this post!  
Unread 28-05-2006, 07:36
tacman1123 tacman1123 is offline
Registered User
AKA: Tac Tacelosky
FRC #1900
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Washington, DC
Posts: 17
tacman1123 is an unknown quantity at this point
Send a message via AIM to tacman1123
Re: Programming Vex w/ MPLab

Quote:
Originally Posted by dababyjebus

Brad Miller should be putting up his own library for programming the VeX robots on http://sf.net at some point which is similar but more advanced than the one provided by easyC and will remove any reliance on easyC.
Is Brad's Library available? If so, under what project name? Thanks!
Reply With Quote
  #25   Spotlight this post!  
Unread 07-06-2006, 20:11
W4TK3 W4TK3 is offline
Registered User
FRC #1102 (M'Aiken Magic)
 
Join Date: May 2006
Rookie Year: 2006
Location: North Augusta, SC
Posts: 3
W4TK3 is an unknown quantity at this point
Re: Programming Vex w/ MPLab

Quote:
Originally Posted by Mark McLeod
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...

...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."
I'm sorry I didn't check back in sooner on this thread (had exams a week or so ago). I came back today, checked the thread, and followed your instructions. Anyway thanks for your help, the build succeeded after I moved my folder to a different location (that pesky 62 byte limit).
Reply With Quote
  #26   Spotlight this post!  
Unread 07-06-2006, 20:27
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

Quote:
Originally Posted by W4TK3
... the build succeeded after I moved my folder to a different location (that pesky 62 byte limit).
You can get rid of that also by changing a setting in MPLAB, so you can put your folder however deep you want.

Project -> Build Options... -> Project
Under the "MPLINK Linker" tab put a check by: Suppress COD-file generation

That's the sole reason for the 62 character limit and you don't use the COD file anyway.


At least you have something to do now that exams are over and done with.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 07-06-2006 at 21:02.
Reply With Quote
  #27   Spotlight this post!  
Unread 24-04-2008, 21:17
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Programming Vex w/ MPLab

This might be a dumb question, but I was looking at this tutorial ( http://roboticsguy.com/tutorials/vex...with_mplab.php ) and it looks like to me that in order to program vex with MPLAB you need to buy EasyC ????? Is that true or am I missing something?? I think this because it says to navigate to a folder that belongs to EasyC. Thanks for any help!
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

Reply With Quote
  #28   Spotlight this post!  
Unread 25-04-2008, 09:11
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Programming Vex w/ MPLab

GGCO - Sorry for the confusion. No, you don't have to own EasyC. What you need is a copy of the C18 compiler and the WPI Lib(assuming you want to use Brads library).

So if you want to, download the student edition of Microchips C18 compiler here, and then download the WPI Lib here. You should still be able to follow that tutorial, just changing the file paths to wherever you install the software.

One note though. Even if you just get the trial of EasyC, I believe the C18 compiler still works after the IDE demo expires. So alternatively (probably easier) you could download the trial of EasyC and just follow the tutorial.

Short answer - No, don't need EasyC
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
Reply With Quote
Reply


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