CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Directing to an output directory?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tstein



Joined: 02 Aug 2005
Posts: 8

View user's profile Send private message

Directing to an output directory?
PostPosted: Sat May 27, 2006 10:27 am     Reply with quote

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







PostPosted: Thu Jan 21, 2010 7:32 am     Reply with quote

I presume by the lack of response that this is (still?) not possible?

ta,

Gary
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 21, 2010 2:33 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Thu Jan 21, 2010 5:45 pm     Reply with quote

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







PostPosted: Mon Jan 25, 2010 2:53 am     Reply with quote

Great - thanks. I'll give it a go.

Gary
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group