MPLAB C18

(instructions, reset, WDT, specifications...) PIC17Cxx, PIC18Fxxx

MPLAB C18

Postby Dimebag » Sun Jul 06, 2014 9:13 am

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.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: MPLAB C18

Postby Dimebag » Sun Jul 06, 2014 9:45 am

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
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: MPLAB C18

Postby vloki » Sun Jul 06, 2014 10:23 am

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
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: MPLAB C18

Postby Dimebag » Sun Jul 06, 2014 10:49 am

I downloaded MPLABX v2.15 the other day. I am not sure how to use it yet.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: MPLAB C18

Postby vloki » Sun Jul 06, 2014 10:56 am

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
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: MPLAB C18

Postby vloki » Sun Jul 06, 2014 10:58 am

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
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: MPLAB C18

Postby Dimebag » Sun Jul 06, 2014 11:08 am

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.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: MPLAB C18

Postby Dimebag » Sun Jul 06, 2014 11:11 am

I was told that C compliers are easier to use. I am trying to be updated as much as I can.
Dimebag
 
Posts: 109
Joined: Sun Jun 29, 2014 7:51 am
Location: Sydney, Australia

Re: MPLAB C18

Postby vloki » Sun Jul 06, 2014 11:59 am

So you use MPLAB-X now ?

What hardware do you have ?
MCHP demo board ?
Debugger ?
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: MPLAB C18

Postby vloki » Sun Jul 06, 2014 12:24 pm

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
...
vloki
Verified identity
 
Posts: 186
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Next

Return to 16-Bit Core

Who is online

Users browsing this forum: No registered users and 13 guests

cron