Go to Post CAD or it didn't happen - R3P0 [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 10-01-2007, 19:04
burningpig burningpig is offline
Registered User
FRC #1895
 
Join Date: Jan 2007
Location: Virginia
Posts: 4
burningpig is an unknown quantity at this point
Help with MPLAB

When I try to build the default code, it can not find main.c. Does anyone know how to fix this?
  #2   Spotlight this post!  
Unread 10-01-2007, 19:09
P1d40n3's Avatar
P1d40n3 P1d40n3 is offline
Commander Programmer
AKA: Adam Burch
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2006
Rookie Year: 2006
Location: Phoenix, Arizona
Posts: 14
P1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura about
Re: Help with MPLAB

Quote:
Originally Posted by burningpig View Post
When I try to build the default code, it can not find main.c. Does anyone know how to fix this?
Are you using the default code provided by IFI here?

If you are, could we get the exact error message it's giving you?
  #3   Spotlight this post!  
Unread 10-01-2007, 19:12
burningpig burningpig is offline
Registered User
FRC #1895
 
Join Date: Jan 2007
Location: Virginia
Posts: 4
burningpig is an unknown quantity at this point
Re: Help with MPLAB

Yeah, we're using the default code.

Here's the error:
Quote:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "main.c" -fo="main.o" /i"C:\mcc18\h" -D_FRC_BOARD -D_LARGE_CODE -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
Error: unable to locate 'main.c'
Halting build on first failure as requested.
BUILD FAILED: Wed Jan 10 18:55:49 2007
  #4   Spotlight this post!  
Unread 10-01-2007, 19:15
Cjmovie's Avatar
Cjmovie Cjmovie is offline
1293 Resident Hacker
AKA: Christopher Corsi
FRC #1293 (D5 Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SC
Posts: 73
Cjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to all
Re: Help with MPLAB

Try making sure the project/source files aren't buried deeply within your directory tree. Usually just a folder in your drive root is good. This is because the compiler is limited to a 64-character path limit.

Apart from that guess, I'm not sure without any more exacts.
__________________
D5 Robotics, Team 1293: Programmer, CAD'er, Mechanical, Electrical... I've made my rounds.
Events: 2006-2009 Palmetto Regional
Website: http://d5robotics.org/
  #5   Spotlight this post!  
Unread 10-01-2007, 19:20
burningpig burningpig is offline
Registered User
FRC #1895
 
Join Date: Jan 2007
Location: Virginia
Posts: 4
burningpig is an unknown quantity at this point
Re: Help with MPLAB

Our code is in the directory suggested in the readme file. We moved the folder with no subfolders and still doesn't work. Maybe some kind of setting?
  #6   Spotlight this post!  
Unread 11-01-2007, 09:24
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,855
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 with MPLAB

Do you use any of the settings under:
Project -> Build Options -> Project
other than Include Path and Library Path?

You could try creating a new project with the Project Wizard.
Just be sure to include only the files listed in the original project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #7   Spotlight this post!  
Unread 11-01-2007, 09:43
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Help with MPLAB

Checklist:
Can you open workspace successfully from specified directory?
Can main.c can be opened, viewed, and saved from workspace window?
Does right click on main.c and selecting compile work?

Other things to check:
Does the user have full authority over the directory and files?

Many school system computers have stringent security restrictions which deny sufficient access for MPLAB to operate properly.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #8   Spotlight this post!  
Unread 11-01-2007, 17:43
burningpig burningpig is offline
Registered User
FRC #1895
 
Join Date: Jan 2007
Location: Virginia
Posts: 4
burningpig is an unknown quantity at this point
Re: Help with MPLAB

Hey,thank you for your suggestion, Mr. Harris. Turns out it WAS the security on our school computers. We are going to contact our network administrator. Thanks again!
  #9   Spotlight this post!  
Unread 12-01-2007, 13:39
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
What version of MPLAB are people using?

What version of MPLAB are people using?

I only found v7.5 available for download but the readme file on the Innovation First web site posted default code suggests:

Quote:
To compile this code you must have Microchip's MPLAB IDE (v7.2)
with their C18 compiler (v2.4) installed on your system.
Is the V7.2 available for download and if so where?
Will V7.5 work?

Please advise

Thanks
  #10   Spotlight this post!  
Unread 17-01-2007, 13:10
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: Help with MPLAB

I'm using MPLAB v7.50. It should be fine as this is just the graphical interface to the tools. The tool versions are important; that is the C18 compiler, mplinker, etc.

The quickest way I found to see what I'm running for tools is to open the readme files in the mcc18 directory:

readme.c18 - C18 v2.40
readme.lkr - linker, libararian, cof, cod tools are v3.90
readme.asm - assembler is v3.90

Bud
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
Hi, I need some help with the MPLAB IDE... razer Programming 9 04-01-2007 07:47
Issues with MPLAB 7.30 gnirts Programming 4 25-01-2006 22:57
Dissatisfaction With MPLAB fowlerm Programming 19 04-06-2005 23:54
Problem with MPLAB d.courtney Programming 5 02-02-2005 21:42
Problems with MPLAB Charley Programming 20 25-02-2004 18:13


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

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