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.

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 option is available only for TI F2804x, F2807x, F2837xD and F2837xS processors.

Select CPU

Select a CPU core to run the generated code on a dual-core processor, such as F2837xD. Ensure you create two different models to run in different CPU cores. Use the appropriate options of this parameter to generate the code for your models.

The clock settings and the CPU assignment for F2837xD processor peripherals are available only when you select CPU1 option. If you select CPU2, ensure you specify the same clock frequency as you have specified for the CPU1 model.

The GPIO pin configuration registers are available only for CPU1. For the GPIOs used in CPU2 model, configure the GPIO pins from CPU1.

For a Simulink generated code that you run in CPU1, the GPIO pin configuration for CPU2 takes place automatically. However, ensure you do not use the same GPIO pins in both CPU1 and CPU2.

For a handwritten code that you run in CPU1, ensure you configure the GPIO pins for CPU2 from CPU1.

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 Support Package 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 Support Package 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 Embedded Coder Support Package for Texas Instruments C2000™ Processors 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 Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto™ Processors 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.

Related Topics