Main Content

C28x-Build Options

Use the build options to specify how the build process takes place.

You can set the following parameters for build options:

Build action

Define how Embedded Coder® responds when you build your model.

The Build, load and run option is supported for Texas Instruments® Code Composer Studio™ CCS v4 and the later versions.

If you select the Build, load and run option, you must provide the required CCS hardware configuration file.

The TI Concerto F28M35x/F28M36x processors support only CCS v5 and the later versions. The TI Delfino F2807x/F2837x processors support only CCS v6 and the later versions.

Device Name

Select a particular device from the selected processor family.

Disable parallel build

  • on – When you select this option, the blockset compiles generated code and driver source codes in sequential order.

  • off – When you clear the selection, the blockset compiles generated code and driver source codes parallely. Parallel execution reduces the time taken to build the model.

Enable TMU

This option enables support for Trigonometric Math Unit (TMU). Relaxed floating-point mode also gets enabled as TMU hardware instructions are replaced only in relaxed floating point mode.

RTS library calls are replaced with the corresponding TMU hardware instructions for the following floating-point operations: floating point division, sqrt, sin, cos, atan, and atan2.

Note

  • There are algorithmic differences between the TMU hardware instructions and the library routines, so the results of operations may differ slightly.

  • This parameter is available only for specific C28x devices.

Boot From Flash (stand alone execution)

The option to specify if the application has to load to the flash. If you do not select this option, the application loads to the RAM.

Use custom linker command file

Select this option, if you have your own custom linker file, which you can specify in the Linker command file parameter. If you do not select this option, based on the device you have selected, a default custom linker command file is used.

Linker command file

For each family of TI processor selected under Target hardware resources, one linker command file is selected automatically.

For a different variant of the processor, you can select the variant from the ‘src’ folder in the blockset installation path. You can also create custom linker command file and select the file path using the Browse button.

The linker command file path provided can be absolute or relative. If the path provided is relative, the path must be selected with respect to the folder where the model is present or the code generation folder.

CCS hardware configuration file

In the C2000™ Microcontroller Blockset installation folder, open CCS_Config and select one of the ccxml files.

Alternately, can use Code Composer Studio to create the ccxml file. In Code Composer Studio, go to File > New > Target Configuration File. Select the file you created using the Browse button. You can also edit the ccxml file using the Edit button.

The ccxml files provided with are as follows:

  • f28027.ccxml—TI F28027 with Texas Instruments XDS100v1 USB Emulator

  • f28035.ccxml—TI F28035 with Texas Instruments XDS100v1 USB Emulator

  • f28069.ccxml—TI F28069 with Texas Instruments XDS100v1 USB Emulator

  • f2808.ccxml—TI F2808 with Texas Instruments XDS100v1 USB Emulator

  • f2808_eZdsp.ccxml—F2808 Spectrum Digital DSK-EVM-eZdsp onboard USB Emulator

  • f28044.ccxml—TI F28044 with Texas Instruments XDS100v1 USB Emulator

  • f28335.ccxml—TI F28335 with Texas Instruments XDS100v1 USB Emulator

  • f28335_eZdsp.ccxml—F28335 Spectrum Digital DSK-EVM-eZdsp onboard USB Emulator

  • f2812_BH2000.ccxml—Blackhawk USB2000 Controller for F2812 eZDSP

  • f28x_generic.ccxml—Generic Texas Instruments XDS100v1 USB Emulator

  • f28x_ezdsp_generic.ccxml—Generic Spectrum Digital eZdsp onboard USB Emulator

  • f28x_ezdsp_generic.ccxml—Generic Spectrum Digital eZdsp onboard USB Emulator

  • f28377S.ccxml—TI F2837xS with Texas Instruments XDS100v2 USB Emulator

  • f28075.ccxml—TI F2807x with Texas Instruments XDS100v2 USB Emulator

  • f28377D.ccxml—TI F2837xD with Texas Instruments XDS100v2 USB Emulator

  • f28379D.ccxml—TI F2839xD with Texas Instruments XDS100v2 USB Emulator

  • f28004x.ccxml—TI F28004x with Texas Instruments XDS100v2 USB Emulator

The ccxml files provided with C2000 Microcontroller Blockset are as follows:

  • f28M35x.ccxml – Texas Instruments XDS100v2 USB Emulator_0

  • f28M36x.ccxml – Texas Instruments XDS100v2 USB Emulator_0

Enable DMA to access ePWM Registers instead of CLA

The option that you can select to enable the DMA to access ePWM registers instead of CLA. This option is available only for F2806x processors.

Enable DMA to peripheral frame 1 (ePWM, HRPWM, eCAP, eQEP, DAC, CMPSS, and SDFM) instead of CLA

The option that you can select to enable the DMA to access peripheral frame 1 (ePWM, HRPWM, eCAP, eQEP, DAC, CMPSS and SDFM) registers instead of CLA. This option is available only for F2837xD, F2837xS, F2807x processors.

Enable DMA to peripheral frame 2 (SPI and McBSP) instead of CLA

The option that you can select to enable the DMA to access peripheral frame 2 (SPI and McBSP) registers instead of CLA. This option is available only for F2837xD, F2837xS, F2807x processors.

Enable FastRTS

This option enables the use of optimized floating point math functions from C28x FPU fastRTS library instead of standard RTS library functions.

By using FastRTS library routines, you can achieve execution speeds considerable faster without rewriting existing code. This option is available only for F2806x, F2833x, F28M35x (C28x) and F28M35x (C28x) processors.

Remap ePWMs for DMA access (Requires silicon revision A and above)

The option that you can select to remap ePWMs registers for DMA access. This option is available only for F2833x processors.

Configure CLA program and data memory

Enable this option to configure LSRAM memory for CLA program or data.

Maximum LSRAM size for CLA program (in KW)

Select the maximum LSRAM size that you can allocate for CLA program in KiloWords.

Note

Ensure memory allocation for CLA program and data is within the total available LSRAM memory of the selected processor.

Maximum LSRAM size for CLA data (in KW)

Select the maximum LSRAM size that you can allocate for CLA data in KiloWords (KW).

Note

Ensure memory allocation for CLA program and data is within the total available LSRAM memory of the selected processor.

Available LSRAM size for CPU (in KW)

Displays the remaining available LSRAM size for CPU in KiloWords.

Use data type replacement to override precision of ‘double’ in generated code

Enable Use data type replacement to override precision of ‘double’ in generated code parameter to override precision of ‘double’ in generated code. This will ensure to enable the Specify custom data type names and replace the double with the replacement option mwReal32_T which will be typedef to float datatype in generated code for both COFF and EABI format. For more information, see Managing Double Data Types on Single Precision FPU Processors in EABI Format.

Number of bits for double

Select the number of bits for double. You can select 32 or 64 as double bit.

Analyze double data type usage

Click the Analyze double data type usage button to compile the entire model and generate html report with the list of double datatype usages in model. For more information, see Managing Double Data Types on Single Precision FPU Processors in EABI Format.

Related Topics