Go to Post Maybe my brain fog factor has expanded after wading through 1114's competition data sheet, so I cannot see the forest for the trees. - Bill_B [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 24-02-2007, 10:59
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Help on MPlab

I have no clue where i am now, the code isnt compiling, and when you do try to download to the rc you get an error divide by zero. now im have no code on the rc and hove no clue how to get some on. a different programmer said try re downloading the software, but i dont know the sites to download or the complier to get, or even the right order to download. im jsut so lost



help,devo
  #2   Spotlight this post!  
Unread 24-02-2007, 11:06
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Help on MPlab

Visit the getting started thread.

I can't help you with code unless you post what you have but:

1) Uninstall and re-install the latest version of IFI Loader.

You can find the software at www.ifirobotics.com and www.kevin.org/frc

If you don't have your compiler and MPLABS installed correctly, uninstall and re install correctly from the CD you got at kickoff.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #3   Spotlight this post!  
Unread 24-02-2007, 11:30
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Re: Help on MPlab

its something with the complier, i havent gotten to the loading part yet,

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8722 /i"C:\mcc18\h" "main.c" -fo="main.o" -D_FRC_BOARD -D_LARGE_CODE -D_DONT_USE_TMR0 -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
This version of the compiler supports only the PIC18F8520 processor.
Halting build on first failure as requested.
BUILD FAILED: Sat Feb 24 10:22:41 2007


thats the message i get with defualt code 2007


my mplab isv7.51 but it was a cd from the kickoff, how do i get the newer compiler, or is it jsut the version i have


devo
  #4   Spotlight this post!  
Unread 24-02-2007, 11:37
KDawg's Avatar
KDawg KDawg is offline
"That's not a question"
AKA: Kenny Miller
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Webster
Posts: 48
KDawg will become famous soon enough
Send a message via AIM to KDawg
Re: Help on MPlab

Quote:
Originally Posted by Devo1098 View Post
This version of the compiler supports only the PIC18F8520 processor.
Halting build on first failure as requested.
BUILD FAILED: Sat Feb 24 10:22:41 2007

It seems to me that the problem isn't MPLab, it is in fact your processor. I don't know which one, but a PIC18F8520 doesn't sound like a computer processor, so that's quite confusing.
__________________
1126 TEAM SPARX!!
I am the software team
  #5   Spotlight this post!  
Unread 24-02-2007, 11:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: Help on MPlab

That sounds like you might have an older version of the C18 compiler, not the one that came on the latest CBOT CD from this year's Kit-of-Parts.
PIC18F8520 is what we used on the 2004/2005 robots.
PIC18F8722 is what we have on the 2006/2007 robots.

Your MPLAB version doesn't much matter.
I'd uninstall and reinstall just the C18 piece from the CBOT disk.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 24-02-2007, 11:54
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Re: Help on MPlab

that would make sense the cd i have is from several years ago,v7.51

i tried one of our 2004 programming labtops and it says unable to open file, isnt there something where the file name cant be too long?

last i dont have this years cd for the compiler at my house, is there some online download version?

Devo
  #7   Spotlight this post!  
Unread 24-02-2007, 12:03
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Help on MPlab

Quote:
Originally Posted by KDawg View Post
It seems to me that the problem isn't MPLab, it is in fact your processor. I don't know which one, but a PIC18F8520 doesn't sound like a computer processor, so that's quite confusing.
The PIC is the processor inside the RC....
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #8   Spotlight this post!  
Unread 24-02-2007, 12:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: Help on MPlab

You'll need the C18 v2.4 compiler from either this year or last year's CBOT CD. There is no online or other legal source.

We're unfortunately dependent on an older version of the C18 compiler, and the lastest version (3.x) available for online trial is not compatable with the IFI libraries we use, and will not work.

You can only use the 2004 version (C18 v2.2) with an older robot controller.
If you are just trying to use it to find compile errors, then you might be able to get by. Try creating a new project (Project Wizard) using the IFI Default Code files.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 24-02-2007, 12:18
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Re: Help on MPlab

im trying to download to a 2006 controller, i jsut have so many different years on the items its not working. im working on getting my camera working, but i cant even get basic drive code on the rc

the cd i have says 2004 v 2.0

the controller i have is 2006

the code i have is 2007, i think i need the 2006 code

now i need the 2006 compiler, or would the earlier years work?

devo

Last edited by Devo1098 : 24-02-2007 at 12:21.
  #10   Spotlight this post!  
Unread 24-02-2007, 12:19
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Help on MPlab

The 2004 will not work. You need a newer one, try to get the one from this year.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #11   Spotlight this post!  
Unread 24-02-2007, 12:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: Help on MPlab

I'll backup Kevin.
You need at least the compiler (v2.4) from last year or this year for it to work. It has some extra capabilities the camera code depends on.

You can run 2007 code on the 2006 controller without any problem, because those two controllers are identical.

You will need ifi_loader v1.1.
The original 2006 CD had an older loader with a bug, but 2007's is okay.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 24-02-2007, 12:33
Devo1098 Devo1098 is offline
Registered User
FRC #1098
 
Join Date: Feb 2007
Location: Wildwood
Posts: 36
Devo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really niceDevo1098 is just really nice
Re: Help on MPlab

if i run to the shop and pick up this years mplab and compiler, will it work on the 2006 controller? then i would jsut have to go to ifi robotics and download the ifi loader, correct?


devo
  #13   Spotlight this post!  
Unread 24-02-2007, 12:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: Help on MPlab

If you get this year's CD it'll have everything you need, including the right ifi_loader.
Just be sure to uninstall the older stuff before running the install.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #14   Spotlight this post!  
Unread 25-02-2007, 02:28
Stvn's Avatar
Stvn Stvn is offline
FIRST Competition Competer
AKA: Steven Rhodes
FRC #0100 (WHS/CHS - WildHats)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Woodside, CA
Posts: 90
Stvn is an unknown quantity at this point
Send a message via AIM to Stvn
Re: Help on MPlab

For the 2006/2007 robot controllers, make sure you have PIC18F8722 and not PIC18F8520 on the Select Device window in Config at the top bar.
__________________
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 7.20 Help please? groovy69 Programming 14 22-01-2007 02:00
Help with MPLAB burningpig Programming 9 17-01-2007 13:10
Please help; HUGE mplab problem brennerator Programming 5 09-01-2007 01:25
MPLAB IDE HELP Idaman323 Programming 2 16-02-2005 18:01
Need Mplab help ASAP !! L33T-meh- Programming 3 03-02-2004 21:39


All times are GMT -5. The time now is 00:21.

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