Setting Model Configuration Parameters

Use the options in the Select tree under Real-Time Workshop to perform the following configuration tasks.

Selecting the system target (ccslink_grt.tlc or ccslink_ert.tlc) in System target file enables Embedded IDE Link CC configuration options in the Embedded IDE Link CC pane.

Target File Selection

System target file

Clicking Browse opens the processor File Browser where you select ccslink_grt.tlc as your Real-Time Workshop System target file for Embedded IDE Link CC.

If you are using Real-Time Workshop Embedded Coder software or plan to use PIL, select the ccslink_ert.tlc processor in System target file.

Build Process

Embedded IDE Link CC software does not use makefiles or the build process to generate code. Code generation is project based so the options in this group do not apply.

Custom Storage Class

When you generate code from a model employing custom storage classes (CSC), make sure to clear Ignore custom storage classes. This setting is the default value for Embedded IDE Link CC and for Real-Time Workshop Embedded Coder.

When you select Ignore custom storage classes,

Ignore custom storage classes lets you switch to a processor that does not support CSCs, such as the generic real-time processor (GRT), without having to reconfigure your parameter and signal objects.

Generate code only

The Generate code only option does not apply to processoring with Embedded IDE Link CC. To generate source code without building and executing the code on your processor, select TI C6000 runtime from the Category list in the Select tree. Then, under Runtime, select Generate code only for Build action. You cannot use DSP/BIOS features when you use the Generate code only option for the Build action.

Report Options

Two options control HTML report generation during code generation.

Create Code Generation report

After you generate code, this option tells the software whether to generate an HTML report that documents the C code generated from your model. When you select this option, Real-Time Workshop writes the code generation report files in the html subdirectory of the build directory. The top-level HTML report file is named modelname_codegen_rpt.html or subsystemname_codegen_rpt.html. For more information about the report, refer to the online help for Real-Time Workshop. You can also use the following command at the MATLAB prompt to get more information.

docsearch 'Create code generation report'

In the Navigation options, when you select Model-to-code and Code-to-model, your HTML report includes hyperlinks to various features in your Simulink model.

Launch report automatically

This option directs Real-Time Workshop to open a MATLAB Web browser window and display the code generation report. If you clear this option, you can open the code generation report (modelname_codegen_rpt.html or subsystemname_codegen_rpt.html) manually in a MATLAB Web browser window or in another Web browser.

Debug Pane Parameters

Real-Time Workshop uses the processor Language Compiler (TLC) to generate C code from the model.rtw file. The TLC debugger helps you identify programming errors in your TLC code. Using the debugger, you can

When you select Debug from the Select tree, you see the Debug options as shown in the next figure. In this dialog box, you set options that are specific to Real-Time Workshop process and TLC debugging.

For details about using the options in Debug, refer to About the TLC Debugger in your Real-Time Workshop processor Language Compiler documentation.

Optimization Pane Parameters

On the Optimization pane in the Configuration Parameters dialog box, you set options for the code that Real-Time Workshop generates during the build process. You use these options to tailor the generated code to your needs. Select Optimization from the Select tree on the Configuration Parameters dialog box. The figure shows the Optimization pane when you select the system target file ccslink_grt.tlc under Real-Time Workshop system target file.

These are the options typically selected for Real-Time Workshop:

For more information about using these and the other Optimization options, refer to your Real-Time Workshop documentation.

Embedded IDE Link CC Pane Parameters

On the select tree, the Embedded IDE Link CC entry provides options in these areas:

Runtime Options

Before you are able to an executable to run on any Texas Instruments processor, you must configure the run-time options for the source model.

By selecting values for the options available, you configure the operation of your processor.

Build action

To specify to Real-Time Workshop software what to do when you click Build, select one of the following options. The actions are cumulative—each listed action adds features to the previous action on the list and includes all the previous features:

Your selection for Build action determines what happens when you click Build or press Ctrl+B. Your selection tells Real-Time Workshop software when to stop the code generation and build process.

To run your model on the processor, select Build_and_execute. This selection is the default build action; Real-Time Workshop software automatically downloads and runs the model on your board.

Interrupt overrun notification method

To enable the overrun indicator, choose one of three ways for the processor to respond to an overrun condition in your model:

Interrupt overrun notification function

When you select Call_custom_function from the Interrupt overrun notification method list, you enable this option. Enter the name of the function the processor should use to notify you that an overrun condition occurred. The function must exist in your code on the processor.

Overrun Indicator and Software-Based Timer

Embedded IDE Link CC includes software that generates interrupts in models that do not have ADC or DAC blocks, or that use multiple clock rates. In the following cases, the overrun indicator does not work:

Project Options

Before you run your model as an executable on any processor, you must configure the Project options for the model.

Compiler options string

To let you determine the degree of optimization provided by the TI optimizing compiler, you enter the optimization level to apply to files in your project. For details about the compiler options, refer to your CCS documentation. When you create new projects, Embedded IDE Link CC sets the optimization to Function(-o2).

Click Get From IDE to import the compiler option setting from the current project in the IDE. To reset the compiler option to the default value, click Reset.

Linker options string

To let you specify the options provided by the TI linker during link time, you enter the linker options as a string. For details about the linker options, refer to your CCS documentation. When you create new projects, Embedded IDE Link CC sets no linker options.

Click Get From IDE to import the linker options string from the current project in the IDE. To reset the linker options to the default value of no options, click Reset.

System stack size (MAUs)

Enter the amount of memory to use for the stack. For more information, refer to Enable local block outputs on the Optimization pane of the Configuration Parameters dialog box. Block output buffers are placed on the stack until the stack memory is fully allocated. After that, the output buffers go in global memory. Also refer to the online Help system for more information about Real-Time Workshop options for configuring and building models and generating code.

Code Generation

From this category, you select options that define the way your code is generated:

To enable the real-time execution profile capability, select Profile real-time task execution. With this selected, the build process instruments your code to provide performance profiling at the task level. When you run your code, the executed code reports the profiling information in

To allow you to specify whether the functions generated from blocks in your model are used inline or by pointers, Inline run-time library functions tells the compiler to inline each Signal Processing blockset and Video and Imaging blockset function. Inlining functions can make your code run more efficiently (better optimized) at the expense of using more memory.

As shown in the following figure, the default setting uses inlining to optimize your generated code.

When you inline a block function, the compiler replaces each call to a block function with the equivalent function code from the static run-time library. If your model use the same block four times, your generated code contains four copies of the function.

While this redundancy uses more memory, inline functions run more quickly than calls to the functions outside the generated code.

Link Automation

When you use Real-Time Workshop to build a model to a C6000 processor, Embedded IDE Link CC makes a connection between MATLAB and CCS. If you have used Embedded IDE Link CC, you are familiar with function ticcs, which creates objects the reference between the IDE and MATLAB. This option refers to the same object, called cc in the function reference pages. Although MATLAB to CCS is a bridge to a specific instance of the CCS IDE, what it really is an object that contains information about the IDE instance it refers to, such as the board and processor it accesses. In this pane, the Export handle to MATLAB base workspace option lets you instruct Embedded IDE Link CC to export the object to your MATLAB workspace, giving it the name you assign in IDE link handle name.

Embedded IDE Link CC Default Project Configuration — custom

Although CCS offers two standard project configurations, Release and Debug, models you build with Embedded IDE Link CC use a custom configuration that provides a third combination of build and optimization settings—custom.

Project configurations define sets of project build options. When you specify the build options at the project level, the options apply to all files in your project. For more information about the build options, refer to your TI CCS documentation.

The default settings for custom are the same as the Release project configuration in CCS, except for the compiler options discussed in the next section. custom uses different compiler optimization levels to preserve important features of the generated code.

Default Compiler Build Options in custom

When you create a new project or build a model to your TI C6000 hardware, your project and model inherit the build configuration settings from the configuration custom. The settings in custom differ from the settings in the default Release configuration in CCS in the compiler settings.

For the compiler options, custom uses the Function(-o2) compiler setting. The CCS default Release configuration uses File(-o3), a slightly more aggressive optimization model.

For memory configuration, where Release uses the default memory model that specifies near functions and data, custom specifies near functions and data—the -ml1 memory model—because some custom hardware might not support far data or aggregate data. Your CCS documentation provides complete details on the compiler build options.

You can change the individual settings or the build configuration within CCS. Build configuration options that do not appear on these panes default to match the settings for the Release build configuration in CCS.

  


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