| MATLAB Link for Code Composer Studio Development Tools | ![]() |
Add files to the active project in Code Composer Studio
Syntax
Description
Use add when you have an existing file to add to your active project in CCS. You can have more than one CCS IDE open at the same time, such as C5000 and C6000 instances. cc identifies which CCS IDE instance gets the file, and it identifies your board or target. Note that cc does not identify your project in CCS--it identifies only your target hardware or simulator. add puts the file specified by filename in the active project in CCS. Files you add must exist and be one of the supported file types shown in the next table.
When you add files, CCS puts the files in the appropriate folder in the project, such as putting source files with the .c extension in the Source folder and adding .lib files to the Libraries folder. You cannot change the destination folder in your CCS project. Using add is identical to selecting Project->Add Files to Project... in CCS IDE.
To specify the file to add, filename must be the full pathname to the file, unless your file is in your CCS working directory or in a directory on your MATLAB path. The MATLAB Link for Code Composer Studio searchs for files first in your CCS IDE working directory then in directories on your MATLAB path.
You can add the following file types to a project through add.
Use activate to change your active project in CCS IDE or switch to the CCS IDE and change the active directory within CCS.
Examples
Create a new project and to it add a source file and a build configuration. To do this task from MATLAB, use new to make your project in CCS IDE, then use add to put the required files into your new project.
cc=ccsdspCCSDSP Object:API version : 1.2Processor type : TMS320C64127Processor name : CPU_1Running? : NoBoard number : 0Processor number : 0Default timeout : 10.00 secsRTDX channels : 0cc.visible(1) % Optional. Makes CCS IDE visible on your desktopnew(cc,'myproject','project');% Now add a C source file add(cc,'c6701evm_adc.c'); % Adds the source file for the ADC block
In CCS IDE, c6701evm_adc.c shows up in myproject, in the Source folder. Now add a new build configuration to myproject. After you add the new configuration, you can see it on the configurations list in CCS IDE, along with the usual Debug and Release configurations.
See Also
| activate | addregister | ![]() |