View previous topic :: View next topic |
Author |
Message |
tstein
Joined: 02 Aug 2005 Posts: 8
|
Directing to an output directory? |
Posted: Sat May 27, 2006 10:27 am |
|
|
Is there anyway to instruct a compiled project to put output filex (hex, lst, etc) into a specific directory? I'm using CCS from MPLAB directly and can't seem to find anyway to do it.
Thanks,
Tomas |
|
|
GaryEwer Guest
|
|
Posted: Thu Jan 21, 2010 7:32 am |
|
|
I presume by the lack of response that this is (still?) not possible?
ta,
Gary |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Jan 21, 2010 2:33 pm |
|
|
If there was an option to control the output location of the .HEX file
it would be listed in this section of the manual, or in the README.TXT:
Quote: |
Invoking the Command Line Compiler
|
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
The Readme.txt for vs. 4.104 (PCM, PCH) does not list such an option. |
|
|
mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
|
Posted: Thu Jan 21, 2010 5:45 pm |
|
|
Give this a try:
// put this atop your main.c file (before including main.h)
#define _BUILD_FILE "myCoolProject"
#define _BUILD_DIR "s:\uControllers\pic\bin"
// put this in your main.h file just under #device line
#define _BUILD_DIR "\" _BUILD_FILE ".hex"
#export (file=_BUILD_FILE, HEX) _________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|
|
GaryEwer Guest
|
|
Posted: Mon Jan 25, 2010 2:53 am |
|
|
Great - thanks. I'll give it a go.
Gary |
|
|
|