|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
Re: Error message in MPLAB IDE
Quote:
Sorry I can't help anymore. ![]() |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
Re: Error message in MPLAB IDE
Quote:
![]() |
|
#5
|
||||
|
||||
|
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
|
||||
|
||||
|
Re: Error message in MPLAB IDE
Quote:
|
|
#7
|
||||
|
||||
|
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 |
|
#8
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
|
#10
|
||||
|
||||
|
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 |
|
#11
|
||||
|
||||
|
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
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |