Go to Post Don't forget to stock up on luck. You'll need some of that too. - Molten [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-12-2006, 00:42
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
MPLAB IDE

Hello, I'm the programmer from team 964. Last year none of us knew how to do anything at our school because our entire team was freshman (only 5 people on our team total). I was learning how to program the robot but I could not get MPLAB to work at all. Deciding it was my lack of programming knowledge we got easy C I think it was. This year we have more people who have never done it. Our instructor wants us to give a demonstration for the new people and to teach them things before the kickoff. I tried loading MPLAB IDE and C18 and Ifi loader of the original cd from last year. Everything installs however it won't even compile the unedited default source code that I got off of the ifi website. I also have tried bloodshed C/C++ tutorials. Please someone explain what I did wrong and how to fix it. I loaded all the files into a new project when I tried to compile it. If you don't know how to fix it can you recommend a free compiler that works well. I might be able to use Linux's gcc either with cygwin or with knoppix. Thanks in advance.
__________________
First rule of technology if it doesn't work break it more.
  #2   Spotlight this post!  
Unread 02-12-2006, 06:42
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: MPLAB IDE

Quote:
Originally Posted by rholokleolke
Hello, I'm the programmer from team 964. Last year none of us knew how to do anything at our school because our entire team was freshman (only 5 people on our team total). I was learning how to program the robot but I could not get MPLAB to work at all. Deciding it was my lack of programming knowledge we got easy C I think it was. This year we have more people who have never done it. Our instructor wants us to give a demonstration for the new people and to teach them things before the kickoff. I tried loading MPLAB IDE and C18 and Ifi loader of the original cd from last year. Everything installs however it won't even compile the unedited default source code that I got off of the ifi website. I also have tried bloodshed C/C++ tutorials. Please someone explain what I did wrong and how to fix it. I loaded all the files into a new project when I tried to compile it. If you don't know how to fix it can you recommend a free compiler that works well. I might be able to use Linux's gcc either with cygwin or with knoppix. Thanks in advance.
With the default code is a workspace file. Open that and try and compile it. Do you get any errors?
  #3   Spotlight this post!  
Unread 02-12-2006, 07:10
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: MPLAB IDE

Chris is correct. We need more detail on exactly what errors you are getting in order to help you.

Rest assured that over 1000 teams use MPLAB to program their robots. It will work for you. We just need to find out what your stumbling block is...

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #4   Spotlight this post!  
Unread 02-12-2006, 08:22
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: MPLAB IDE

Every team should evaluate their programming abilities. If a team feels lost with MPLAB and has difficulty with getting going, then I strongly suggest they consider Easy-C. This will ensure that the team can program the robot. After, they feel comfortable with Easy-c then start on MPLAB. Is there another team in your area you could meet with to help with the MPLAB installation and get you going? Our team is in a similar situation. We have 2 students that I feel could handle MPLAB. One hasn't been to too many meeting and the other I feel should step up to a leadership position, leaving us with rookie programmers. After, last year's experience, I kind of like Easy-C.
  #5   Spotlight this post!  
Unread 02-12-2006, 13:39
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
Re: MPLAB IDE

I know how to program now. I've made other programs that didn't have to do with first using bloodshed. There was no project file included. I'll try to download it again. I know how to use compilers and C. Last year I hated easy C because it was all drag and drop and I prefer a text environment over some cute gui when programming. My problem was is that after installing all the files on the cd it would not compile the default source code.
__________________
First rule of technology if it doesn't work break it more.
  #6   Spotlight this post!  
Unread 02-12-2006, 13:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: MPLAB IDE

Quote:
Originally Posted by rholokleolke
...My problem was is that after installing all the files on the cd it would not compile the default source code.
How did you install the files? Where did you obtain the default code? How did you go about trying to compile it? What did MPLab do when you tried? Be as specific as possible. We can't do a good job of assisting you if we don't have good information about the problem.
  #7   Spotlight this post!  
Unread 02-12-2006, 18:22
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
Re: MPLAB IDE

I first installed the software following the instructions that came on the cd it said first install mplab ide. I installed that then I installed the c18 one as per the directions. Next I installed ifi loader. After all that was installed I restarted the computer. Next I downloaded the default source code from ifirobotics.com. There were no project files in the folder so I selected new project. From there I added all the .h and .c files in the directory. i attempted to compile it and it said there were errors in the code. I'm sorry I can't tell you the errors right now I will have to wait till tuesday to try anything again. When I do I am going to redownload and install everything. If I still get the errors I will post again with the exact errors that it gives me. Thank you for you help and concern.
__________________
First rule of technology if it doesn't work break it more.
  #8   Spotlight this post!  
Unread 02-12-2006, 18:30
Eric W. Jones's Avatar
Eric W. Jones Eric W. Jones is offline
Rack & Roll, baby!
FRC #1646 (Precision Guessworks)
Team Role: Programmer
 
Join Date: Jun 2006
Rookie Year: 2006
Location: Lafayette, Indiana
Posts: 231
Eric W. Jones will become famous soon enoughEric W. Jones will become famous soon enough
Re: MPLAB IDE

You shouldn't have to start a new project in order to use the default code. What I would do is simply edit the default code. Don't change any folder or file names. The compiler can't handle long file paths, so for best results, place the folder with your code on the desktop. This will make the source file name as short as possible. As long as you don't change any file paths the code should compile.
As for the errors in your code, what sort of errors were they? If there are syntax errors, you can double-click on the error given in the compile window, and MPLAB will show you about where the error is. If the error has something to do with a file path, follow the directions above.

Let me know if this helps!
__________________
2006 Boilermaker Regional
2006 Buckeye Regional - Third place overall
2006 Atlanta Finals
2006 IRI

2007 Boilermaker Regional
2007 St. Louis Regional
2007 Finals (hopefully )
2007 IRI

Why, yes. I do know what I'm doing!

Last edited by Eric W. Jones : 02-12-2006 at 18:33.
  #9   Spotlight this post!  
Unread 02-12-2006, 19:21
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: MPLAB IDE

Theres a very strange thing that the C18 compiler does....

How many characters is the path to your project files? There is a limit to the number of characters allowed.

I would suggest trying copying all of your files to a directory near the root, in my case, i use: "C:\firstcode\<year>\<day/revision>"

Did that work? Post back here or PM either way. Hope that helps you, if you need other help i'm not a 1/2 bad programmer.

-Q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #10   Spotlight this post!  
Unread 02-12-2006, 23:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: MPLAB IDE

Quote:
Originally Posted by rholokleolke
...I downloaded the default source code from ifirobotics.com. There were no project files in the folder...
That's odd. There's definitely a FrcCode.mcp file inside the folder I get when I unzip the http://www.ifirobotics.com/docs/frc-code-2-28-2006.zip file. I suggest that you look again; if it's still not there, download a fresh copy.
  #11   Spotlight this post!  
Unread 03-12-2006, 22:44
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Re: MPLAB IDE

Another question.

Have you stated in ur active project your Library path of the mcc18 ? Also have you stated a path for ur output directory. This can be found in Project/Buld Options/Project. I remember that that was my main reason why it would not complie properly.

srry my spelling can be way off.

Hope that helps
  #12   Spotlight this post!  
Unread 04-12-2006, 13:35
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: MPLAB IDE

I just downloaded this zip file and unpacked it to a new directory. I then opened MPLAB and did a Project>Open and clicked on the FrcCode.mcp file. Then I did a Project>Build All and it compiled just fine.

There is no need to change anything if you have done the MPLAB/C18 installation correctly.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #13   Spotlight this post!  
Unread 04-12-2006, 18:35
Tom Saxton's Avatar
Tom Saxton Tom Saxton is offline
Registered User
no team (Issaquah Robotics Society)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2003
Location: Sammamish, WA
Posts: 98
Tom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud of
Re: MPLAB IDE

Quote:
Originally Posted by Qbranch
Theres a very strange thing that the C18 compiler does....

How many characters is the path to your project files? There is a limit to the number of characters allowed.

I would suggest trying copying all of your files to a directory near the root, in my case, i use: "C:\firstcode\<year>\<day/revision>"

Did that work? Post back here or PM either way. Hope that helps you, if you need other help i'm not a 1/2 bad programmer.

-Q
Actually, I believe the only character limit is for the linker. The compiler can handle long path names. If you exceed the limit, you will get a clear error from the linker after all of the files are compiled. In that case, you will have to move the directory containing the project, but exit from MPLab first!
__________________
Tom Saxton
http://www.idleloop.com/
  #14   Spotlight this post!  
Unread 08-12-2006, 18:32
rholokleolke rholokleolke is offline
First year programmer
FRC #0964
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Ohio
Posts: 8
rholokleolke is on a distinguished road
Send a message via AIM to rholokleolke Send a message via Yahoo to rholokleolke
Re: MPLAB IDE

Sorry it took so long for me to post I haven't been able to log on. I re downloaded the default source code off of ifirobotics.com. I opened the workspace and this time it was there. I talked to the only other person who had used the computer so far. Apparently he had moved it or deleted it or something. Don't ask me what he was doing with the computer considering hes one of the people who builds the robot. Anyways I opened it up compiled it no problem, made some changes tried again. Everything works. Thanks for the help and support. If I have anymore questions I'll be sure to post.
__________________
First rule of technology if it doesn't work break it more.
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 Problem amateurrobotguy Programming 10 26-02-2005 09:29
MPLAB IDE HELP Idaman323 Programming 2 16-02-2005 18:01
MPLAB IDE 6.60 Error mchan1111 Programming 8 08-11-2004 20:17
MPLAB IDE Project Specs Raven_Writer Programming 18 19-01-2004 15:53
using the MPLAB IDE MPLAB SIM simulator WizardOfAz Programming 1 03-11-2003 01:24


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

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