MATLAB Link for Code Composer Studio Development Tools    
add

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.

Table 3-3: File Types and Extensions Supported by add and CCS IDE
File Type
Extensions Supported
CCS Project Folder
C/C++ source files
.c, .cpp, .cc, .ccx, .sa
Source
Assembly source files
.a*, .s* (excluding .sa, refer to C/C++ source files)
Source
Object and Library files
.o*, .lib
Libraries
Linker command file
.cmd
Project Name
DSP/BIOS file
.cdb*
DSP/BIOS Config
Visual Linker Recipe
.rcp
Replaces the .cmd file, or goes under Project Name

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.

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, cd, open, remove


  activate addregister