MATLAB Link for Code Composer Studio Development Tools | ![]() ![]() |
Change the CCS IDE working directory
Syntax
Description
cd(cc,'
changes the CCS IDE working directory to the directory identified by the string directory
'
)
dir
. dir
must refer to an existing directory for the change to take affect. You can give the directory string either as a relative pathname or an absolute pathname including the drive letter. CCS IDE applies relative pathnames from the current working directory.
wd = cd(cc)
returns the current CCS IDE working directory in wd
.
Using cc
to change the CCS IDE working directory does not affect your MATLAB working directory or any MATLAB paths. Use the following function syntax to set your CCS IDE working directory to match your MATLAB working directory.
cd(cc,
where pwd
)
pwd
calls the MATLAB function pwd
that shows your present MATLAB working directory, changes your current CCS IDE working directory to match the pathname returned by pwd
.
Examples
When you open a project in CCS IDE, the folder containing the project becomes the current working folder in CCS IDE. Try opening the tutorial project volume.mak
in CCS IDE. volume.mak
is in the tutorial files from CCS IDE. When you check the working directory for CCS IDE in MATLAB, you see something like the following result
where the drive letter D may be different based on where you installed CCS IDE.
Now check your MATLAB working directory:
Your CCS IDE and MATLAB working directories are not the same. To make the directories the same, use the cd(cc,pwd)
syntax
cd(cc,pwd) % Set CCS IDE to use your MATLAB working directory. pwd % Check your MATLAB working directory. ans = J:\bin\win32 cd(cc) % Check your CCS IDE working directory. ans = J:\bin\win32
You have set CCS IDE and MATLAB to use the same working directory.
![]() | ccsdsp | cexpr | ![]() |