Page 1 of 1

MPLAB v6.6 and HI-TECH PICC&PICC-18

PostPosted: Thu Jul 29, 2004 10:59 am
by aek
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 PICC or PICC-18 project (in the SYSA or SYSF folders), MPLAB will fail to build the project properly:

code:
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:salvo ut u1isr.cce".
Clean: Deleted file "C:salvo ut u5sysa u5lite.mcs".
Clean: Done.
Executing: "C:HT-PICBINPICC.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"" -I".... u1" -I"......inc" -Zg9 -O -DSYSA
-DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Q -MPLAB -16F877
Error[000] C:salvo ut u1isr.c 17 : Cannot open include file "salvo.h"
Halting build on first failure as requested.
BUILD FAILED: Thu Jul 29 11:55:39 2004

The solution is to replace the $(BINDIR) directive in the project's Include Paths the directory in which the project file (.mcp) resides. To do this, select Project -> Build Options... -> Project, and replace every instance of $(BINDIR) in the Include Paths, with the project file's (*.mcp) pathname, then OK.
code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:HT-PICBINPICC.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"c:salvo ut u5sysa"
-I"c:salvo ut u5sysa.... u1" -I"c:salvo ut u5sysa......inc" -Zg9 -O -DSYSA
-DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Q -MPLAB -16F877
Executing: "C:HT-PICBINPICC.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"c:salvo ut u5sysa"
-I"c:salvo ut u5sysa.... u1" -I"c:salvo ut u5sysa......inc" -Zg9 -O -DSYSA
-DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Q -MPLAB -16F877
Executing: "C:HT-PICBINPICC.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"c:salvo ut u5sysa"
-I"c:salvo ut u5sysa.... u1" -I"c:salvo ut u5sysa......inc" -Zg9 -O -DSYSA
-DMAKE_WITH_FREE_LIB -DUSE_INTERRUPTS -Q -MPLAB -16F877
Executing: "C:HT-PICBINPICC.EXE" -E"tu5lite.lde" "C:salvo ut u1isr.obj" "C:salvosrcmem.obj"
"C:salvo ut u5main.obj" "C:salvolibhtpiccsfp42cab.lib" -M"tu5lite.map" -W-9 -O"tu5lite.cof"
-Q -MPLAB -16F877

Memory Usage Map:

Program ROM $0000 - $006B $006C ( 108) words
Program ROM $04D2 - $07FF $032E ( 814) words
$039A ( 922) words total Program ROM

Bank 0 RAM $0020 - $0033 $0014 ( 20) bytes
Bank 0 RAM $0070 - $0072 $0003 ( 3) bytes
$0017 ( 23) bytes total Bank 0 RAM
Bank 1 RAM $00A0 - $00BB $001C ( 28) bytes total Bank 1 RAM

Program statistics:
Total ROM used 922 words (11.3%)
Total RAM used 51 bytes (13.9%)
Loaded C:salvo ut u5sysa u5lite.cof
BUILD SUCCEEDED: Thu Jul 29 11:58:03 2004


For example, to build the tu5lite project in salvo ut u5sysa u5lite.mcp, replace all instances of $(BINDIR) with c:salvo ut u5sysa. It's recommended that you use cut-and-paste to avoid errors.

We've made HI-TECH and Microchip aware of this problem. As this affects the portability of Salvo (and other people's) projects, we hope that a simpler fix will be avaiable soon.

On Microchip's web forums: http://forum.microchip.com/tm.asp?m=48300.

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

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