Skip to Main Content Skip to Search
Product Documentation

Getting Started

Overview

Embedded Coder software enables you to use MATLAB functions to communicate with Code Composer Studio software and with information stored in memory and registers on a processor. With the ticcs objects, you can transfer information to and from Code Composer Studio software and with the embedded objects you get information about data and functions stored in your signal processor memory and registers, as well as information about functions in your project.

Embedded Coder lets you build, test, and verify automatically generated code using MATLAB, Simulink, Simulink Coder, and the Code Composer Studio integrated development environment. You can use Embedded Coder to verify code executing within the Code Composer Studio software environment using a model in Simulink software. This processor-in-the-loop testing environment uses code automatically generated from Simulink models by Embedded Coder software. A range of Texas Instruments targets are supported:

With Embedded Coder , you can use MATLAB software and Simulink software to interactively analyze, profile and debug processor-specific code execution behavior within CCS. In this way, Embedded Coder automates deployment of the complete embedded software application and makes it easy for you to assess possible differences between the model simulation and processor code execution results.

Embedded Coder consists of these components:

With Embedded Coder, you create objects that connect MATLAB software to Code Composer Studio software.

The next sections describe briefly the components of Embedded Coder software.

IDE Automation Interface

The IDE Automation Interface component is a collection of methods that use the Code Composer Studio API to communicate between MATLAB software and Code Composer Studio. With the interface, you can do the following:

The IDE Automation Interface provides an application program interface (API) between MATLAB software and Code Composer Studio. Using the API, you can create new projects, open projects, transfer data to and from memory on the processor, add files to projects, and debug your code.

IDE Project Generator

The IDE Project Generator component is a collection of methods that use the Code Composer Studio API to create projects in Code Composer Studio and generate code with Embedded Coder. With the interface, you can do the following:

Verification

Verifying your processes and algorithms is an essential part of developing applications. The components of Embedded Coder combine to provide the following verification tools for you to apply as you develop your code:

Verifying Your Code Composer Studio Installation

To verify that CCS is installed on your machine and has at least one board configured, enter

ccsboardinfo

at the MATLAB software command line. With CCS installed and configured, MATLAB software returns information about the boards that CCS recognizes on your machine, in a form similar to the following listing.

Board Board                       Proc Processor  Processor
 Num  Name                        Num  Name       Type
 ---  --------------------------------  ---  -------------
1  C6xxx Simulator (Texas Instrum .0   6701     TMS320C6701
0  C6x13 DSK (Texas Instruments)   0   CPU      TMS320C6x1x

If MATLAB software does not return information about any boards, open your CCS installation and use the Setup Utility in CCS to configure at least one board.

As a final test, start CCS to verify that it starts up successfully. For Embedded Coder to operate with CCS, the CCS IDE must be able to run on its own.

Embedded Coder uses objects to create:

Concepts to know about the objects in this toolbox are covered in these sections:

Refer to MATLAB Classes and Objects in your MATLAB documentation for more details on object-oriented programming in MATLAB software.

Many of the objects use COM server features to create handles for working with the objects. Refer to your MATLAB documentation for more information about COM as used by MATLAB software.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS