electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Req. MPLAB C18 help for a beginner


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Req. MPLAB C18 help for a beginner
Author Message
amtalan



Joined: 24 Jul 2001
Posts: 39


Post03 Mar 2003 18:04   

error - could not find file c018i.o.


I'm dooing my first steps with MPLAB C18, with the examples find in the package but I find this error.

Can someone tell me the reason and/or attach a simple working workspace?

Best regards.

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

Deleting intermediary files... done.
Executing: "C:\Programmi\Microchip\Mcc18\bin\mcc18.exe" -p=18F452 "example1.c" -fo="example1.o" -w2 -ms -Ot- -Ob-
Executing: "C:\Programmi\Microchip\Mcc18\bin\mplink.exe" "18f452.lkr" "E:\SwPic\example1\example1.o" /m"example1.map" /o"example1.cof"
MPLINK 3.20, Linker
Copyright (c) 2002 Microchip Technology Inc.
Error - could not find file 'c018i.o'. <------------------------- ????
Errors : 1

BUILD FAILED
Back to top
mImoto



Joined: 21 Feb 2002
Posts: 232
Helped: 2


Post03 Mar 2003 19:33   

error - could not find file c018i.o


Maybe you have use a previous workspace. Delete the workspace, open again the project with mplab and try again. Mplab will generate another workspace.

Best regards,

mimoto
Back to top
servopump



Joined: 23 Feb 2002
Posts: 61
Location: Italia


Post04 Mar 2003 4:49   

could not find file c018i.o


Hi Amtalan,

You must fist add the linker script file to the project. Right click on
"Linker Scripts" in the project tree and then hit Add file. Then drill down to
C:\mcc18\lkr\18f452i.lkr to add the file.

Next make sure that all the dir in the "Project\Build Options\Projects" menu are filled in. The last one in that list is the linker script path.

Good Luck

Servopump
Back to top
amtalan



Joined: 24 Jul 2001
Posts: 39


Post04 Mar 2003 12:11   

could not find file c018i.o.


Hi all

My project was new, but I bulid a new one following your advices but with the same result.

Here is my poor project, could someone have a look at it?

Best regards.

P.S. its located in C:\software



Sorry, but you need login in to view this attachment

Back to top
anniechina



Joined: 29 Dec 2007
Posts: 1


Post29 Dec 2007 10:08   

c018i.o


I met with this issue.But now it is ok.
Maybe you can try according to following steps: project-build option-project-directories-include search path-new-C:\MCC18\h-OK; then project-build option-project-directories-library search path-new-C:\MCC18\lib-OK.
Back to top
Google
AdSense
Google Adsense




Post29 Dec 2007 10:08   

Ads




Back to top
tim-mattison



Joined: 01 Mar 2009
Posts: 1


Post01 Mar 2009 22:33   

could not find file c018i.o


anniechina, thank you for your thorough followup. Your suggestion fixed my issue right away.

This is something that is really frustrating about the PIC environment. When I start my project I select the C18 compiler tools and my chip (a PIC18Fxxxx) but for some reason the wizard doesn't do the following critically important steps:

1) Include the proper LKR script
2) Include the proper include path
3) Include the proper library path

Under what circumstances would I not need these items? They should, for the sanity of all developers, be included automatically. Without smart users in the community like anniechina I would be dead in the water right now.

In any case, thank you for your words of wisdom. I can finally get started on my project. Smile
Back to top
technicavolous



Joined: 17 Nov 2009
Posts: 1
Location: Orlando, FL USA


Post17 Nov 2009 1:18   

Re: Req. MPLAB C18 help for a beginner


Thank you all for this information. I've programmed a handful of other 8 bit MCU's and figured PIC should be the way to go and bought the PICkit3. I couldn't find ANY getting started that actually worked - it all appeared to be from the PICkit2 which although it looks identical is very different.

I eventually just downloaded the latest MPLAB and lite version of MCC18. I kept getting compile errors and it was THIS string that helped me figure out I didn't have the directories proper nor did I have the linker set or the H file.

I didn't find ANYTHING in any of the manuals that said I had to do this! You guys got me there. Now I can actually figure out how to flip this LED on!!

hihi Thanks for the insight


..
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Req. MPLAB C18 help for a beginner
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
C coding help in MPLAB C18 (5)
KS0108 GLCD Driver, LIB for mplab c18 (1)
mplab c18 error (1)
MPLAB C18 error (1)
mplab-c18 question .. (5)
RTC(MPLAB IDE/C18 compiler) (2)
PIC16F programming with MPLAB-C18 compiler (1)
Hitech picc18 VS. MPLAB C18 what is the better? (7)
Does MPLAB C18 support PIC 16 and 17 family? (3)
ADC on 18F4525 coded in C langage under MPLAB (C18) (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS