Pumpkin User Forums
  PICmicro MCUs

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   MPLAB v6.6 and HI-TECH PICC&PICC-18
posted July 29, 2004 11:59     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
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:

Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\salvo\tut\tu1\isr.cce".
Clean: Deleted file "C:\salvo\tut\tu5\sysa\tu5lite.mcs".
Clean: Done.
Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"" -I"\..\..\tu1" -I"\..\..\..\inc" -Zg9 -O -DSYSA
Error[000] C:\salvo\tut\tu1\isr.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.
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"c:\salvo\tut\tu5\sysa"
-I"c:\salvo\tut\tu5\sysa\..\..\tu1" -I"c:\salvo\tut\tu5\sysa\..\..\..\inc" -Zg9 -O -DSYSA
Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"c:\salvo\tut\tu5\sysa"
-I"c:\salvo\tut\tu5\sysa\..\..\tu1" -I"c:\salvo\tut\tu5\sysa\..\..\..\inc" -Zg9 -O -DSYSA
Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"c:\salvo\tut\tu5\sysa"
-I"c:\salvo\tut\tu5\sysa\..\..\tu1" -I"c:\salvo\tut\tu5\sysa\..\..\..\inc" -Zg9 -O -DSYSA
Executing: "C:\HT-PIC\BIN\PICC.EXE" -E"tu5lite.lde" "C:\salvo\tut\tu1\isr.obj" "C:\salvo\src\mem.obj"
"C:\salvo\tut\tu5\main.obj" "C:\salvo\lib\htpicc\sfp42cab.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\tut\tu5\sysa\tu5lite.cof
BUILD SUCCEEDED: Thu Jul 29 11:58:03 2004

For example, to build the tu5lite project in salvo\tut\tu5\sysa\tu5lite.mcp, replace all instances of $(BINDIR) with c:\salvo\tut\tu5\sysa. 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).]


All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Pumpkin Home Page

2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.

Ultimate Bulletin Board 5.46a