Go to Post The horse is dead; stop beating it please. - DonRotolo [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 12-01-2008, 10:54
Sean Marks's Avatar
Sean Marks Sean Marks is offline
AutoCAD User
AKA: Sean Marks
FRC #2016 (Mu Mu Psi)
Team Role: Student
 
Join Date: Dec 2006
Rookie Year: 2007
Location: New Jersey
Posts: 126
Sean Marks is a jewel in the roughSean Marks is a jewel in the roughSean Marks is a jewel in the rough
Send a message via AIM to Sean Marks
MPLAB workspace (HELP!)

I recently updated to MPLAB v8.00, and the C18 v3.10 compiler. I downloaded the 2007 default code.

Now my problem is that when I started up MPLAB, the default untitled workspace came up. I created a new workspace for my project, gave it a title, and a location to save it.

I then copied and added all the files in the default code folder to my project. Most of it worked fine, but the .c files were not added into the source section. The header files were properly added, but not the source(.c) They were instead placed in the "other files" section.

When I compile it says "NO SOURCE FILES: BUILD FAILED!" or something like that. Why is it doing this and how can I put the source files back into the source section?

EDIT: I have a new problem. I managed to add the .c files to the source section by changing the filter for the source section from *.asm to *.c. But now when i try to compile it. it says

"Clean: Deleting intermediary and output files.
Clean: Done.
Skipping file. There is no tool to process the file with the given suffix.
Halting build on first failure as requested.
BUILD FAILED: Sat Jan 12 11:14:15 2008"

Now I'm just confused. I never had these problems last year, so I'm just lost.

EDIT:NEW PROBLEM! After redownloading, I used the workspace found inthe default code and everything came up. I then "made" the code and I came up with a series of errors such as
Quote:
"Error - Coff file format for 'ifi_library.o' is out of date.
Error - Could not build member 'ifi_library.o' in library file 'C:\Documents and Settings\Owner.FIRST_LAPTOP_3\My Documents\Programming Code 2008\FRC 2008 Code v1\FRC_library_8722.lib'."
Once again, I am using the most recent code, so I'm at a loss.
__________________

2008-NJ Semi-Finalist (Thanks 694 & 1279) / Chesapeake Winners (Thanks 1418 & 11) / Newton Finalists (Thanks 1574 & 141)
2007-NJ Rookie All-Star / Monty Madness Champs

Last edited by Sean Marks : 12-01-2008 at 11:58.
  #2   Spotlight this post!  
Unread 12-01-2008, 11:29
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: MPLAB workspace (HELP!)

Quote:
Originally Posted by Sean Marks View Post
I recently updated to MPLAB v8.00, and the C18 v3.10 compiler. I downloaded the 2007 default code.

Now my problem is that when I started up MPLAB, the default untitled workspace came up. I created a new workspace for my project, gave it a title, and a location to save it.

I then copied and added all the files in the default code folder to my project. Most of it worked fine, but the .c files were not added into the source section. The header files were properly added, but not the source(.c) They were instead placed in the "other files" section.

When I compile it says "NO SOURCE FILES: BUILD FAILED!" or something like that. Why is it doing this and how can I put the source files back into the source section?

EDIT: I have a new problem. I managed to add the .c files to the source section by changing the filter for the source section from *.asm to *.c. But now when i try to compile it. it says

"Clean: Deleting intermediary and output files.
Clean: Done.
Skipping file. There is no tool to process the file with the given suffix.
Halting build on first failure as requested.
BUILD FAILED: Sat Jan 12 11:14:15 2008"

Now I'm just confused. I never had these problems last year, so I'm just lost.
Hmmm... Too weird. Perhaps MPLAB doesn't know you have a c compiler installed and doesn't know what to do with a file with a .c extension? Try right-clicking on the source file icon and manually add the files.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 12-01-2008, 11:31
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: MPLAB workspace (HELP!)

Yep, I have the same problem as well...
  #4   Spotlight this post!  
Unread 12-01-2008, 11:33
MiniNerd24's Avatar
MiniNerd24 MiniNerd24 is offline
Are you going to eat that?
FRC #2039 (Rockford Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2006
Location: Illinois
Posts: 375
MiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the roughMiniNerd24 is a jewel in the rough
Re: MPLAB workspace (HELP!)

Yeah, I had that problem recently too. I just copied and pasted my .c file text and saved it as a .asm file. The compiler reads this and tries to build it. My problem is that it shows 94 (!) errors, even though I'm using a C source code! (If you're using the 2007 source code then the same will happen to you too.)
__________________
The system is down.


Rockford Robotics 2039: Think outside the bots.
  #5   Spotlight this post!  
Unread 12-01-2008, 11:42
Sean Marks's Avatar
Sean Marks Sean Marks is offline
AutoCAD User
AKA: Sean Marks
FRC #2016 (Mu Mu Psi)
Team Role: Student
 
Join Date: Dec 2006
Rookie Year: 2007
Location: New Jersey
Posts: 126
Sean Marks is a jewel in the roughSean Marks is a jewel in the roughSean Marks is a jewel in the rough
Send a message via AIM to Sean Marks
Re: MPLAB workspace (HELP!)

yea, I am of course using 2007 code. As far as I know there is no 2008 code.(yet at least)

I'm gonna try redownloading the code. Start from scratch, and add the .c files individully.
__________________

2008-NJ Semi-Finalist (Thanks 694 & 1279) / Chesapeake Winners (Thanks 1418 & 11) / Newton Finalists (Thanks 1574 & 141)
2007-NJ Rookie All-Star / Monty Madness Champs
  #6   Spotlight this post!  
Unread 12-01-2008, 11:54
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: MPLAB workspace (HELP!)

Well, we decided to just try using the workspace/projecc that comes with the default code, but when compiling that the build fails with:

Quote:
error - Coff file format for 'ifi_library.o' is out of date
error - Coud not find member 'ifi_library.o' in library file 'C:\filepathToProject\FRC_library_8722.lib'
I'm not sure what else can be done to setup a working project space...
  #7   Spotlight this post!  
Unread 12-01-2008, 11:54
AndrewN's Avatar
AndrewN AndrewN is offline
it's alive!
AKA: Andrew Nicholson
FRC #1778 (Chill Out)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Edmonds, WA
Posts: 48
AndrewN is just really niceAndrewN is just really niceAndrewN is just really niceAndrewN is just really niceAndrewN is just really nice
Re: MPLAB workspace (HELP!)

Once you have created the new project using "New" you need to choose the ToolSuite to use.

Menu "Project:Select Language Toolsuite...", brings up a dialog.
Menu "Active Toolsuite:" choose "Microchip C18 Toolsuite".
All the C files should now be in the "Source Files" list.

You may also need to set the locations of the various tools if you have a non-standard setup (might be easier to reinstall a standard setup if you don't know what you are doing).
__________________
Andrew Nicholson
2011 FRC Robot Inspector (Seattle, Portland)
Mentor FRC 1778 "Chill Out", FTC 3018, 3940 "Hawks", 4434 "Heat Misers"

"Everything should be made as simple as possible, but no simpler."
  #8   Spotlight this post!  
Unread 12-01-2008, 12:00
Sean Marks's Avatar
Sean Marks Sean Marks is offline
AutoCAD User
AKA: Sean Marks
FRC #2016 (Mu Mu Psi)
Team Role: Student
 
Join Date: Dec 2006
Rookie Year: 2007
Location: New Jersey
Posts: 126
Sean Marks is a jewel in the roughSean Marks is a jewel in the roughSean Marks is a jewel in the rough
Send a message via AIM to Sean Marks
Re: MPLAB workspace (HELP!)

I did what you said AndrewN and it eliminated some of the errors, but I have the same problem as bronxbomber92, it says that my ifi_library.o is out of date.
__________________

2008-NJ Semi-Finalist (Thanks 694 & 1279) / Chesapeake Winners (Thanks 1418 & 11) / Newton Finalists (Thanks 1574 & 141)
2007-NJ Rookie All-Star / Monty Madness Champs
  #9   Spotlight this post!  
Unread 12-01-2008, 12:32
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: MPLAB workspace (HELP!)

If worst comes to worst, would someone mind uploading a working project with the default code for MPLAB 3.0?
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
Help on MPlab Devo1098 Programming 13 25-02-2007 02:28
MPLAB 7.20 Help please? groovy69 Programming 14 22-01-2007 02:00
Help with MPLAB burningpig Programming 9 17-01-2007 13:10
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 23:18.

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