Pumpkin, Inc.

Pumpkin User Forums

MPLAB v6.6 and MPLAB-C18

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

MPLAB v6.6 and MPLAB-C18

Postby aek » Thu Jul 29, 2004 10:35 am

To all Salvo users:

It appears that MPLAB v6.6 does not read the $(BINDIR) directory of previously-saved projects correctly. Therefore, when loading a Salvo MPLAB-C18 project (in the SYSE folders), MPLAB will fail to build the project properly:

code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "c:mcc18inmcc18.exe" -p=18C452 "main.c" -fo="main.o" /i"" /i".... u1" /i"......inc"
-DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa-
C:salvo ut u5main.c:14: unable to locate 'main.h'
C:salvo ut u5main.c:15: unable to locate 'salvo.h'
error 1 spawning c:mcc18incpp18
Halting build on first failure as requested.
BUILD FAILED: Thu Jul 29 11:32:38 2004

The solution is to define the $(BINDIR) directory to be the directory in which the project file (.mcp) resides. To do this, select Project -> Build Options... -> Project, click on Browse... for Output Directory, $(BINDIR), and click on Select, then OK.
code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "c:mcc18inmcc18.exe" -p=18C452 "main.c" -fo="main.o" /i"C:salvo ut u5syse"
/i"C:salvo ut u5syse.... u1" /i"C:salvo ut u5syse......inc"
-DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa-
Executing: "c:mcc18inmcc18.exe" -p=18C452 "isr.c" -fo="isr.o" /i"C:salvo ut u5syse"
/i"C:salvo ut u5syse.... u1" /i"C:salvo ut u5syse......inc"
-DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa-
Executing: "c:mcc18inmcc18.exe" -p=18C452 "mem.c" -fo="mem.o"
/i"C:salvo ut u5syse" /i"C:salvo ut u5syse.... u1"
/i"C:salvo ut u5syse......inc" -DSYSE -DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Opa-

Executing: "C:Program FilesMPLAB IDEMCHIP_Toolsmplink.exe" /l"C:mcc18lib" /k"c:mcc18lkr"
"C:mcc18lkr18c452.lkr" "C:salvo ut u5main.o" "C:salvo ut u1isr.o" "C:salvosrcmem.o"
"C:salvolibmcc18sfc18sfa.lib" /m"C:salvo ut u5syse u5lite.map" /o"tu5lite.cof"
MPLINK 3.80, Linker
Copyright (c) 2004 Microchip Technology Inc.
Errors : 0

MP2COD 3.80, COFF to COD File Converter
Copyright (c) 2004 Microchip Technology Inc.
Errors : 0

MP2HEX 3.80, COFF to HEX File Converter
Copyright (c) 2004 Microchip Technology Inc.
Errors : 0
Loaded C:salvo ut u5syse u5lite.cof
BUILD SUCCEEDED: Thu Jul 29 11:35:08 2004


For example, to build the tu5lite project in salvo ut u5syse u5lite.mcp, set that project's $(BINDIR) to c:salvo ut u5syse

------------------

[This message has been edited by aek (edited July 29, 2004).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest