MATLAB Link for Code Composer Studio Development Tools    

Introducing the Tutorial

To get you started using links for CCS IDE software, the MATLAB Link for Code Composer Studio includes an example script ccstutorial.m. As you follow along with this tutorial, you perform five tasks that step you through creating and using links for CCS IDE:

  1. Select your target.
  2. Create and query links to CCS IDE.
  3. Use MATLAB to load files into CCS IDE.
  4. Work with your CCS IDE project from MATLAB.
  5. Close the links you opened to CCS IDE.

For this tutorial, you load and run a simple digital signal processing application on target processor you select. To help you understand how they work, the tutorial demonstrates both writing to memory and reading from memory in the Working with Links and Data portion of the tutorial.

Using the read and write functions gets a bit complicated. MATLAB supports only double-precision values for calculations, but you can read and write a range of data types to and from your target. Seeing how the read and write functions work can help you when you need to do your work.

The tutorial covers the link functions listed below. The functions listed first apply to CCS IDE independent of the links--you do not need a link to use these functions. The functions listed next require a CCS IDE link in place before you can use the function syntax:

Running the Interactive Tutorial

You have the option of running this tutorial from the MATLAB command line or entering the functions as described in the following tutorial sections.

To run the tutorial in MATLAB, click run ccstutorial. Running the interactive tutorial in MATLAB puts you in an interactive mode where the tutorial program provides prompts and text descriptions to which you respond to move to the next portion of the lesson. The interactive tutorial covers the same information provided by the following tutorial sections. You can view the tutorial M-file used here by clicking ccstutorial.m.


  Tutorial 2-1--Using Links and Embedded Objects Selecting Your Target