Go to Post You can have any color robot you like, so long as it stays that color. So you shouldn't have to worry unless you have a chameleon bot. - Kevin Sevcik [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 17-03-2004, 17:33
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Error message in MPLAB IDE

When i was trying to compile our final code i got this error message please help me.

Please help me!



leting intermediary files... done.
Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe" -p=18F452 "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLINK 3.50, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - unknown switch: -p=18F452
Errors : 1

Halting build on first failure as requested.
BUILD FAILED: Wed Mar 17 17:21:03 2004
__________________
"I'm sorry, after all he is just a wookie!"
  #2   Spotlight this post!  
Unread 17-03-2004, 17:41
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Error message in MPLAB IDE

Quote:
Originally Posted by dddriveman
leting intermediary files... done.
Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe" -p=18F452 "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLINK 3.50, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - unknown switch: -p=18F452
Errors : 1

Halting build on first failure as requested.
BUILD FAILED: Wed Mar 17 17:21:03 2004
It may be that either (a) your arguments for the linker got changed or (b) something happened to 18f8520user.lkr. (B was because the name is similar to the error. ) I looked at my settings for the linker and I have no idea what could have changed.

Sorry I can't help anymore.
__________________

  #3   Spotlight this post!  
Unread 17-03-2004, 17:43
Crazy_Ed's Avatar
Crazy_Ed Crazy_Ed is offline
Amature Progammer
AKA: Ed Orsi
#0710 (PAW)
Team Role: Programmer
 
Join Date: Mar 2004
Location: Ft. Lauderdale, Florida
Posts: 12
Crazy_Ed has a little shameless behaviour in the past
Send a message via AIM to Crazy_Ed
Re: Error message in MPLAB IDE

I don't have much experience with the compiler/linker that you are talking about, but it seems that either of a few things happened:
1. You somehow entered a command line parameter to the linker
2. Something has been changed in the config file of the compiler
3. You entered some strange accidental command in "ifi_startup.c"

Thats all I can think of.
__________________
I came, I programmed, I tore my hair out.
  #4   Spotlight this post!  
Unread 17-03-2004, 17:47
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Re: Error message in MPLAB IDE

Quote:
Originally Posted by Crazy_Ed
I don't have much experience with the compiler/linker that you are talking about, but it seems that either of a few things happened:
1. You somehow entered a command line parameter to the linker
2. Something has been changed in the config file of the compiler
3. You entered some strange accidental command in "ifi_startup.c"

Thats all I can think of.
I have not changed anything i am just trying to combine the files that i have.
__________________
"I'm sorry, after all he is just a wookie!"
  #5   Spotlight this post!  
Unread 17-03-2004, 17:56
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Error message in MPLAB IDE

it looks like somewhere you changed the target processor to the p=18F452

we are using the PIC 18F8520

maybe somewhere in the project setup / options/ custom - one of those pulldown menus?

was someone playing around with the MPLAB settings on you?

also ifi_startup.c has an include to another file, the ifi_default.h file which has an include for the picdef... file for the 18F8520 - maybe you opened one of these and entered a stay character somewhere?

are you sure your code is in the right directory?

if all esle fails, start a new directory with all the default code, and move only the files you intentionally edited into that directory - then the files you are not suppose to edit will be untouched.

Last edited by KenWittlief : 17-03-2004 at 18:01.
  #6   Spotlight this post!  
Unread 17-03-2004, 19:04
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Re: Error message in MPLAB IDE

Quote:
Originally Posted by KenWittlief
it looks like somewhere you changed the target processor to the p=18F452

we are using the PIC 18F8520

maybe somewhere in the project setup / options/ custom - one of those pulldown menus?

was someone playing around with the MPLAB settings on you?

also ifi_startup.c has an include to another file, the ifi_default.h file which has an include for the picdef... file for the 18F8520 - maybe you opened one of these and entered a stay character somewhere?

are you sure your code is in the right directory?

if all esle fails, start a new directory with all the default code, and move only the files you intentionally edited into that directory - then the files you are not suppose to edit will be untouched.
I just found the problem we are missing the clib.lib file and the pic18f8520.lib files were can we find them?
__________________
"I'm sorry, after all he is just a wookie!"
  #7   Spotlight this post!  
Unread 17-03-2004, 23:04
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Re: Error message in MPLAB IDE

Sorry guys still having trouble with all of this. I have no idea what i am doing. I'm trying to reinstall the program in an hopes to fix my error message. In case that doesn't work could someone please help me clean up the mess i created. P.M. me if you can help than i will give you the code.

Thanx
Thanx
Thanx
__________________
"I'm sorry, after all he is just a wookie!"
  #8   Spotlight this post!  
Unread 17-03-2004, 23:15
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Error message in MPLAB IDE

first thing, remember when you install the MPLAB SW you have to follow the directions on the innovationfirst website - DONT follow the directions that came with the CD or the tools wont run right
  #9   Spotlight this post!  
Unread 17-03-2004, 23:42
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Re: Error message in MPLAB IDE

I don't have the CD i got it off of microchips website. Our instructor has the CD and he was not available today
__________________
"I'm sorry, after all he is just a wookie!"
  #10   Spotlight this post!  
Unread 18-03-2004, 00:02
dddriveman's Avatar
dddriveman dddriveman is offline
Former Driver 1038, 979
AKA: Driveman
FRC #1038 (Thunderhawks)
Team Role: Alumni
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Dayton
Posts: 142
dddriveman has a spectacular aura aboutdddriveman has a spectacular aura about
Send a message via AIM to dddriveman
Re: Error message in MPLAB IDE

ok i got MPLAB to compile almost but this is what i got.
Deleting intermediary files... done.
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_startup.c:1: Unable to open 'ifi_startup.i'
error -1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "user_routines_fast.c" -fo="user_routines_fast.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_aliases.h:18: unable to locate 'adc.h'
error 1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_utilities.c:1: Unable to open 'A:\FrcCode\ifi_utilities.err'
error -1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_aliases.h:18: unable to locate 'adc.h'
error 1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\printf_lib.c:1: Unable to open 'A:\FrcCode\printf_lib.err'
error -1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\user_routines.c:1: Unable to open 'user_routines.i'
error -1 spawning C:\mcc18\bin\cpp18
Executing: "C:\mcc18\bin\c18demo.exe" -p=18F8520 "uread.c" -fo="uread.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\mcc18\src\pmc\USART\18Cxx\uread.c:2: unable to locate 'p18cxxx.h'
C:\mcc18\src\pmc\USART\18Cxx\uread.c:3: unable to locate 'usart.h'
error 1 spawning C:\mcc18\bin\cpp18
Skipping link step. Not all sources built successfully.
BUILD FAILED: Thu Mar 18 00:01:12 2004
__________________
"I'm sorry, after all he is just a wookie!"
  #11   Spotlight this post!  
Unread 18-03-2004, 00:10
doy's Avatar
doy doy is offline
#1208 Ex-Lead Programmer
AKA: Jesse Luehrs
#1208 (The Super Critical Axe Men)
Team Role: Alumni
 
Join Date: Jan 2004
Location: O'Fallon, IL
Posts: 27
doy is on a distinguished road
Send a message via AIM to doy
Re: Error message in MPLAB IDE

make sure the disk isnt write protected... i would suggest not trying to compile something directly on a floppy in the first place, from a speed standpoint alone. also, make sure the include, library, and linker directories are specified correctly in project options.
  #12   Spotlight this post!  
Unread 18-03-2004, 06:34
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Error message in MPLAB IDE

First, if you have another computer, try reinstalling on that, as the installer messes up (at least in my experience) if there was a previous installation. If there isn't, uninstal the program and remove any reference to anything to do wit h MCC18 in the PATH environment variable. (To see that, open a run box and type "msconfig".)

Another thing, make sure to check all the boxes that apear during the compiler installation, especially the one that says "Configure MPLAB to work with this version of MCC18" or something like that.
__________________

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
Development enviroments orther than MPLAB wun Programming 36 29-04-2004 21:20
MPLAB Variable Simulator? Chris_Elston Programming 3 18-02-2004 12:08
If you're having MPLAB problems, LOOK HERE. Jeremy_Mc Programming 0 20-01-2004 18:06
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:23.

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