MATLAB Link for Code Composer Studio Development Tools | ![]() ![]() |
Loading Files into CCS
You have established the link to CCS IDE and to target. Using three functions you learned about the target, whether it was running, its type, and whether CCS IDE was visible. Now the target needs something to do.
In this tutorial section you load the executable code for the target CPU in CCS IDE. For this tutorial, the MATLAB Link for Code Composer Studio includes a Code Composer Studio project file. With the following commands in the tutorial you locate the tutorial project file and load it into CCS IDE. The open
function directs Code Composer Studio to load a project file or workspace file
Note Code Composer Studio has its own workspace and workspace files which are quite different from MATLAB workspace files and the MATLAB workspace. Remember to pay attention to both workspaces. |
After you have executable code running on your target you can exchange data blocks with the target. This is the purpose of the links for CCS IDE:
projfile = fullfile(matlabroot,'toolbox','tiddk','tidemos',... 'ccstutorial','ccstut_54xx.pjt') projpath = fileparts(projfile) open(cc,projfile) % Open project file cd(cc,projpath) % Change working directory of Code Composer(only)
C6x11 processor family--Type the following commands to load the project file. Notice that these functions also change your CCS IDE working directory.
projfile = fullfile(matlabroot,'toolbox','tiddk','tidemos',... 'ccstutorial','ccstut_6x11.pjt') projpath = fileparts(projfile) open(cc,projfile) % Open project file cd(cc,projpath) % Change Code Composer working directory
C6x0x processor family--Type the following commands to load the project file. Notice that these functions also change your CCS IDE working directory.
.lib
files. If you installed CCS IDE in a directory other than the default installation directory, browse in your installation directory to find the missing file or files. Use the path in the error message as an indicator of where to find the missing files.
load(cc,'a.out')
to load the target execution file.
ddat
, type
Note The symbol table is available after you load the program file into the target, not after you build a program file. |
![]() | Creating and Querying Links for CCS IDE | Working with Links and Data | ![]() |