MATLAB Link for Code Composer Studio Development Tools    

Creating and Querying Links for CCS IDE

In this tutorial section you create the connection between MATLAB and Code Composer Studio IDE. This connection, or link, is represented by a MATLAB object, which for this session you save as variable cc. You use function ccsdsp to create link objects. When you create links, ccsdsp input arguments let you define other link properties, such as the global timeout. Refer to the ccsdsp documentation for more information on these input arguments.

Use the generated link cc to direct actions to your target processor. In the following tasks, cc appears in all function syntax that interact with CCS IDE and the target:

  1. Create a link to your selected board and processor by typing
  1. If you were to watch closely, and your machine is not too fast, you see Code Composer Studio appear briefly when you call ccsdsp. If CCS IDE was not running before you established the new link, CCS starts and gets placed in the background.

  1. Type visible(cc,1) to force CCS IDE to be visible on your desktop
  1. In most cases, you need to interact with Code Composer Studio while you develop your application, so the first link function we introduce, visible, controls the state of Code Composer Studio on your desktop. visible accepts Boolean inputs that make Code Composer Studio either visible on your desktop (input to visible  1) or invisible on your desktop (input to visible = 0). For the rest of this tutorial you need to interact with CCS IDE so we use visible to set the CCS IDE visibility to 1.

  1. Now type disp(cc) at the prompt to see the status information.
  1. The MATLAB Link for Code Composer Studio provides three functions to read the status of a target board and processor:

  1. Type linkinfo = info(cc).
  1. The cc link status information tells you about the target

  1. Check to see if the target is running by entering
  1. MATLAB responds by telling you that the processor is stopped

  1. At last, check to see whether the target supports RTDX communications by entering

  Selecting Your Target Loading Files into CCS