Page 1 of 4

MPLAB C18

PostPosted: Sun Jul 06, 2014 9:13 am
by Dimebag
Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o".
Clean: Deleted file "D:\Program Files\New folder\ProjectCtest.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\mplabc18\v3.47\bin\mcc18.exe" -p=18F452 "Ctest.c" -fo="Ctest.o" /i"C:\Program Files\Microchip\mplabc18\v3.47\inc" -w3 -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 3.47 (evaluation)
Copyright 2000-2011 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited: 60

WARNING: Running the compiler in extended mode will not be supported when the evaluation becomes feature limited.

Executing: "D:\Program Files\Microchip\MPASM Suite\MPLink.exe" /l"C:\Program Files\Microchip\mplabc18\v3.47\lib" "D:\Program Files\Microchip\MPASM Suite\LKR\18f452.lkr" "D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o" "C:\Program Files\Microchip\mplabc18\v3.47\lib\p18f452.lib" /o"ProjectCtest.cof"
MPLINK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - Coff file 'D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o' does not appear to be a valid COFF file.
Errors : 1

BUILD FAILED: Sun Jul 06 18:08:30 2014




My first time in C18. I have MPLAB 7.20 installed. Some ideas what I need to do to fix this failure please.

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 9:45 am
by Dimebag
Deleting intermediary and output files.
Clean: Deleted file "D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o".
Clean: Deleted file "D:\Program Files\New folder\ProjectCtest.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\mplabc18\v3.47\bin\mcc18.exe" -p=18F452 "Ctest.c" -fo="Ctest.o" /i"C:\Program Files\Microchip\mplabc18\v3.47\inc" -w3 -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 3.47 (evaluation)
Copyright 2000-2011 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited: 60

WARNING: Running the compiler in extended mode will not be supported when the evaluation becomes feature limited.

Skipping link step. The project contains no linker script.
BUILD FAILED: Sun Jul 06 18:41:57 2014


hmm I don't appear to have a correct linker file. any one got a spare linker file available

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 10:23 am
by vloki
Dimebag wrote:My first time in C18. I have MPLAB 7.20 installed. Some ideas what I need to do to fix this failure please.


7.20 ???
Guess such old MPLAB version is not compatible with C18 3.47.

Dimebag wrote:Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o".
Clean: Deleted file "D:\Program Files\New folder\ProjectCtest.mcs".

I have not used MPLAB for some years now because I switched to MPLAB-X
but your project organization seems to be a bit curious.
Try to use the project wizard when starting a new project and do not place projects
inside the program installation folders

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 10:49 am
by Dimebag
I downloaded MPLABX v2.15 the other day. I am not sure how to use it yet.

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 10:56 am
by vloki
Another thing about the 452 you seem to use:

We used this PIC years ago in our student labs on PICDEM 2+ boards.
Later we replaced them with 4520 because of internal oscillator and other improvements
In the meantime we switched again and are using 45K22 and 25K22 chips on our lab boards.

If you easily could get a more recent pic like the 45K22 I would recommend that you stop
wasting time with outdated 452

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 10:58 am
by vloki
Dimebag wrote:I downloaded MPLABX v2.15 the other day. I am not sure how to use it yet.

In my personal experience it is MUCH more easy to use for beginners than classic MPLAB

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 11:08 am
by Dimebag
PLINK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - Coff file 'D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o' does not appear to be a valid COFF file.
Errors : 1

I think I need the correct linker file.

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 11:11 am
by Dimebag
I was told that C compliers are easier to use. I am trying to be updated as much as I can.

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 11:59 am
by vloki
So you use MPLAB-X now ?

What hardware do you have ?
MCHP demo board ?
Debugger ?

Re: MPLAB C18

PostPosted: Sun Jul 06, 2014 12:24 pm
by vloki
Dimebag wrote:
PLINK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - Coff file 'D:\Program Files\Microchip\MPASM Suite\LKR\Ctest.o' does not appear to be a valid COFF file.
Errors : 1

I think I need the correct linker file.

I think you need to read the C18 compiler readme
...
MPLINKā„¢ Linker and MPLAB IDE COFF File Format

Due to a change in COFF file format, MPLAB C18 v3.00 and later will not be compatible with versions of MPLINK Linker prior to v4.00 or versions of the MPLAB IDE prior to v7.21
...