Go to Post That sound you hear is of every programmer in the country cringing at the thought. - Billfred [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 14-07-2008, 18:20
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
Use MPLAB to program your VEX robot -- FOR FREE!!

I made this really nice tutorial that will show you how to program your vex bot with MPLAB. You can download it from here.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #2   Spotlight this post!  
Unread 23-07-2008, 12:44
Aaron S's Avatar
Aaron S Aaron S is offline
Registered User
FRC #1612 (Robosharks)
Team Role: Programmer
 
Join Date: Jul 2008
Rookie Year: 2008
Location: United States
Posts: 11
Aaron S is an unknown quantity at this point
Send a message via AIM to Aaron S
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

Thanks for the tutorial, I was getting tired of using EasyC and this also helped me get MPLAB up and running properly.
  #3   Spotlight this post!  
Unread 26-07-2008, 17:47
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: Use MPLAB to program your VEX robot -- FOR FREE!!

Not a problem.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #4   Spotlight this post!  
Unread 26-07-2008, 20:28
Aaron S's Avatar
Aaron S Aaron S is offline
Registered User
FRC #1612 (Robosharks)
Team Role: Programmer
 
Join Date: Jul 2008
Rookie Year: 2008
Location: United States
Posts: 11
Aaron S is an unknown quantity at this point
Send a message via AIM to Aaron S
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

I've actually just gotten a chance to load the hex file onto a controller and it seems that it doesn't run once loaded. I put a PrintToScreen at the beginning of main and when I turned on the controller while it was tethered, I got nothing. To make sure it wasn't a problem with the way I was transferring the hex file I compiled the same thing in EasyC and loaded it onto the controller, which proved to work fine.

Can you think of anything that could be the problem? I followed the tutorial exactly and I get one warning in the compilation output about calling Tank4 before it was prototyped, but asides from that everything seems to be fine.

Oh and I'm using MPLAB v8.10 with MCC18 v2.4 if that helps.
  #5   Spotlight this post!  
Unread 27-07-2008, 08:00
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: Use MPLAB to program your VEX robot -- FOR FREE!!

That is really weird. I will look into it, and get back to you later today.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #6   Spotlight this post!  
Unread 27-07-2008, 08:09
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: Use MPLAB to program your VEX robot -- FOR FREE!!

Aaron,

Make sure that you have the correct linker/.h/.lib files. That is the only think that I can think of unless your code is incorrect. Why don't you post it just so to make sure. I'll do my best.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #7   Spotlight this post!  
Unread 27-07-2008, 21:38
Aaron S's Avatar
Aaron S Aaron S is offline
Registered User
FRC #1612 (Robosharks)
Team Role: Programmer
 
Join Date: Jul 2008
Rookie Year: 2008
Location: United States
Posts: 11
Aaron S is an unknown quantity at this point
Send a message via AIM to Aaron S
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

Before I post the code I've been working on (which was loaded onto the robot initially) I'm going to try and load just a simple PrintToScreen in the main function to see if it was my code. However, I can only do that tomorrow as that's when I get to go into my school and toy around with it.

I'll let you know anything I find out, thanks for your time.
  #8   Spotlight this post!  
Unread 28-07-2008, 18:44
Aaron S's Avatar
Aaron S Aaron S is offline
Registered User
FRC #1612 (Robosharks)
Team Role: Programmer
 
Join Date: Jul 2008
Rookie Year: 2008
Location: United States
Posts: 11
Aaron S is an unknown quantity at this point
Send a message via AIM to Aaron S
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

It turns out the controller I had loaded the code onto was broken in some way, but it's fixed now (after loading the default FRC code, then the Default Vex code). I loaded my new program onto it and it worked perfectly, thanks.
  #9   Spotlight this post!  
Unread 07-08-2009, 08:51
johncap100 johncap100 is offline
Registered User
FTC #0658
 
Join Date: Aug 2009
Location: Capital High School
Posts: 95
johncap100 is an unknown quantity at this point
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

GGCo i have downloaded the files etc from your tutorial
but get an erro message of not finding stdio.h
?? if yoiu can help that would be great
thanks john
  #10   Spotlight this post!  
Unread 07-08-2009, 16:48
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

PrintToScreen should only work in EasyC, as far as I know. For the IFI Loader terminal window, use printf(). Cast the string with (const char *), as follows:

Code:
printf((const char *)"Hello, world.\r");
  #11   Spotlight this post!  
Unread 07-08-2009, 20:21
MarkO's Avatar
MarkO MarkO is offline
Registered User
AKA: Mark D. Overholser
FRC #0957 (WATSON Robotics team)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Albany, Oregon, USA
Posts: 17
MarkO is an unknown quantity at this point
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

Quote:
Originally Posted by daltore View Post
PrintToScreen should only work in EasyC, as far as I know. For the IFI Loader terminal window, use printf(). Cast the string with (const char *), as follows:

Code:
printf((const char *)"Hello, world.\r");

EasyC uses the WPILIB.. That is what GGCO's Document is all about...

Here is my Follow Up Post on how to fix that issue, Re: Use MPLAB to program your VEX robot -- FOR FREE!! (Post #18).
  #12   Spotlight this post!  
Unread 10-08-2009, 16:14
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

Quote:
Originally Posted by MarkO View Post
EasyC uses the WPILIB.. That is what GGCO's Document is all about...

Here is my Follow Up Post on how to fix that issue, Re: Use MPLAB to program your VEX robot -- FOR FREE!! (Post #18).
I know this is talking about WPILib, that's what I used in MPLAB (well, an MPLAB clone, anyway) for a while before switching to default code. I was under the impression that PrintToScreen only worked with the EasyC reader, not with IFI Loader, because it sends more data than IFI Loader is looking for (specific line numbers, line resets, etc.). I've always used printf() and it works. But you can use PrintToScreen?
  #13   Spotlight this post!  
Unread 25-10-2010, 11:14
eagal eagal is offline
Registered User
no team
 
Join Date: Oct 2010
Location: isreal
Posts: 2
eagal is an unknown quantity at this point
Re: Use MPLAB to program your VEX robot -- FOR FREE!!

hello GGCO ,

i used your tutorial ( he is great ) but i'm getting one eror :

he goes like this :

Eror: coff file format for '. main.o' is out of date

link step failed
--------------

i hope you can help me with that ...

thank ,

eagal.
  #14   Spotlight this post!  
Unread 25-10-2010, 11: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,854
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: Use MPLAB to program your VEX robot -- FOR FREE!!

That means your compiler version doesn't match the libraries you are using. The libraries were compiled with one version of the compiler and your program is being compiled with a significantly different version.

The COFF format changed when the compiler went from version 2.x to version 3.x.

Figure out what version of the compiler you're using and you can get the matching support libraries.

P.S.
Kevin Watson's site has basic libraries for both the 2.x and 3.x compiler versions.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-10-2010 at 11:35.
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
What program should I use for website design? radioshackkid Website Design/Showcase 35 03-02-2007 22:12
Which wheels will you use for your robot this year? GO Groves 1213 Technical Discussion 44 03-02-2007 12:36
Announcement: Free CAD for Vex swe9 VEX 1 25-09-2006 04:00
How do you program your vex? CircularLogic FIRST Tech Challenge 4 01-05-2006 16:51
What program do you use for webdesign? Rez648 Website Design/Showcase 42 24-05-2004 17:19


All times are GMT -5. The time now is 19:28.

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