| Contents | Index |
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:
TI's C2000
TI's C5000
TI's C6000
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:
IDE Project Generator—add embedded framework code to the C code generated from Simulink models, and package as a complete IDE project
IDE Automation Interface—use functions in the MATLAB command window to access and manipulate data and files in the IDE and on the processor
Verification—verify how your programs run on your processor
With Embedded Coder, you create objects that connect MATLAB software to Code Composer Studio software.
Note Embedded Coder uses objects. You work with them the way you use all MATLAB objects. You can set and get their properties, and use their methods to change them or manipulate them and the IDE to which they refer. |
The next sections describe briefly the components of Embedded Coder software.
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:
Automate complex tasks in the development environment by writing MATLAB software scripts to communicate with the IDE, or debug and analyze interactively in a live MATLAB software session.
Automate debugging by executing commands from the powerful Code Composer Studio software command language.
Exchange data between MATLAB software and the processor running in Code Composer Studio software.
Set breakpoints, step through code, set parameters and retrieve profiling reports.
Automate project creation, including adding source files, include paths, and preprocessor defines.
Configure batch building of projects.
Debug projects and code.
Execute API Library commands.
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.
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:
Automated project-based build process
Automatically create and build projects for code generated by Embedded Coder.
Customize code generation
Use Embedded Coder with any Embedded Coder system target file (STF) to generate processor-specific and optimized code.
Customize the build process
Automate code download and debugging
Rapidly and effortlessly debug generated code in the Code Composer Studio software debugger, using either the instruction set simulator or real hardware.
Create and build CCS projects from Simulink software models. IDE Project Generator uses Simulink Coder software or Embedded Coder software to build projects that work with C2000 software, C5000 software, and C6000 software processors.
Highly customized code generation with the system target file idelink_ert.tlc and idelink_grt.tlc that enable you to use the Configuration Parameters in your model to customize your generated code.
Automate the process of building and downloading your code to the processor, and running the process on your hardware.
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:
Processor-in-the-loop simulation (PIL)
Execution profiling
Stack profiling
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:
Connections to the Code Composer Studio Integrated Development Environment (CCS IDE)
Connections to the RTDX™ (RTDX) interface. This object is a subset of the object that refers to the CCS IDE.
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.
![]() | Code Composer Studio | IDE Automation Interface | ![]() |

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 |