Model Configuration Embedded Coder Support Package for Texas Instruments C2000 F28M3x Concerto Processors

Hardware Implementation Pane Overview

  1. In the Simulink® Editor, select Simulation > Model Configuration Parameters.

  2. In the Configuration Parameter dialog box, click Hardware Implementation.

  3. Set the Hardware board parameter to a value such as TI Concerto F28M36x (ARM Cortex-M3).

  4. The parameter values under Hardware board settings are automatically populated to their default values.

    You can optionally adjust these parameters for your particular use case.

  5. Click Apply to apply the changes.

For more information on selecting a hardware support package and general configuration settings, see Hardware Implementation Pane (Simulink).

M3x-Scheduler options

Scheduler interrupt source

Select the source of the scheduler interrupt.

C28x / ARM Cortex-M3 - Build options

C28x / ARM Cortex-M3 - Build options

ParameterDescriptionDefault Value
Build actionThe option to specify how the build process should take place during code generation.Build, load and run
Device name

The option to select a particular device from the selected processor family in the Target hardware parameter on the Code Generation pane.

F28M36P63C
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.

Selected
Use custom linker command file

The option to indicate that the custom linker command file must be used during the build action. Select this option, if you have your own custom linker file, which you can specify in Linker command file parameter. If you do not select this option, based on the device you have selected, a default custom linker command file will be used.

Selected
Linker command file

The path to memory description file that is required during linking. For each family of TI processor selected under ‘Target Hardware’, one linker command file will be selected automatically.

$(TARGET_ROOT)\src\c28M35H52C.cmd
CCS hardware configuration file

The Code Composer Studio™ file required for downloading the application on the hardware. Select one of the .ccxml files from the folder ‘CCS_Config’ folder under Support Package installation folder.

$(TARGET_ROOT)/CCS_Config/f28M35x.ccxml

M3x-Clocking

Clocking

ParameterDescriptionDefault Value
Desired C28x CPU clock in MHz

Specify the expected C28x CPU clock frequency and match the same in your C28x Model.

150
Oscillator clock (OSCCLK) frequency in MHz

Specify the frequency of the crystal oscillator used in the board.

20
Auto set PLL based on OSCCLK and CPU clock

The option that helps you to set the PLL control register value automatically.

Selected
System PLL multiplier (SYSPLLMULT)[1–127.75]

Specify the system PLL multiplier. You can specify a value in this parameter if Auto set PLL based on OSCCLK and CPU clock is not selected.

15
System clock divider (SYSDIVSEL)

If you select the Auto set PLL based on OSCCLK and CPU clock check box, the auto calculated clock divider value achieves the specified CPU Clock value based on the Oscillator clock frequency. Otherwise, you can select a value for Clock divider (SYSDIVSEL).

1
Achievable C28x SYSCLK in MHz = (OSCCLK * SYSPLLMULT/ 2/ SYSDIVSEL)

The auto calculated feedback value that matches most closely to the desired CPU Clock value on the board, based on the values of OSCCLK, SYSPLLMULT, and the SYSDIVSEL.

150
M3 System clock divider (M3SSDIVSEL)

Select a value from the options for M3 system clock divider.

2
M3 SYSCLK in MHz = (OSCCLK * SYSPLLMULT/ 2/ SYSDIVSEL/ M3SSDIVSEL)

This is the achievable M3 system clock frequency.

75

M3x-GPIO A–D

ParameterDescriptionDefault Value
Enable GPIO port A

Select this option to enable GPIO port A.

Selected
Show GPIOA settings for

Select GPIO pins from port A for which you want to set the CPU core and the pin type.

Pin 0
Select the CPU core which controls Pin #

Select the CPU core for the selected GPIO pin.

 
Select the pin type for Pin 0

Select the pull–up and the open–drain options for the selected GPIO pin.

 

M3x-UART0–4

ParameterDescriptionDefault Value
Enable UART Loopback

Select this check box to enable data transmission from Tx to Rx buffer.

Not selected
Enable M3 UART4 to C28 SCI-A Loopback

Select this check box to enable data transmission from M3 UART4 to C28 SCI-A.

Not selected
Desired Baud rate (in bits/sec)

Specify the desired baud rate of the data transmission.

115200
Closest Achievable Baud rate (in bits/sec)

The value in this parameter is calculated based on the desired baud rate that you specify and the system clock frequency.

115207
Number of stop bits

Select the number of stop bits used to indicate the end of a byte data transmission. The options available:

1
Parity mode

Select a parity mode that is added at the end of a binary data for error detection.

None
Pin assignment(Tx)

Select a GPIO pin as the UART pin for data transmission. By default, the GPIO29 is hardwired as the Tx GPIO to the FTDI chip.

PE5_GPIO29
Pin assignment(Rx)

Select a GPIO pin as UART pin for data reception.

PE4_GPIO28
Enable Transmit InterruptSelect this check box to enable the transmit interrupt.Not selected
Enable Receive InterruptSelect this check box to enable the receive interrupt.Not selected

M3x-Ethernet

ParameterDescriptionDefault Value
Enable DHCP for local IP address assignment

Select this check box to configure the board to get an IP address from the local DHCP server on the network.

Selected
Local IP address

Enter the IP address of the board.

192.168.1.10
Subnet mask

Enter the subnet mask for the board. A subnet mask divides an IP address into network address and a host address.

255.255.255.0
Ethernet local host name

Enter the local host name.

Concerto-M3
MAC address

Enter the MAC address.

A8-63-F2-80-90-80

M3x-PIL

ParameterDescriptionDefault Value
PIL communication interface

Select the communication interface for PIL. The available options are: Serial and TCP/IP.

Serial
Serial port

Enter the serial port used by the target hardware.

COM1
PIL Baud Rate (UART) Baud rate)

This is the PIL baud rate used by the target. This is based on the baud rate that you specify in the Desired Baud rate (in bits/sec) parameter for UART0.

115207
Ethernet port

This is the Ethernet port used for PIL communication.

17725

External mode

ParameterDescriptionDefault Value
Communication interface

Use the ‘serial’ option to run your model in the External mode with serial communication.

Serial
Serial port

Enter the serial port used by the target hardware.

COM4
Verbose

Select this check box to view the External Mode execution progress and updates in the Diagnostic Viewer or in the MATLAB command window.

Not selected

For information on other configuration options, see Hardware Implementation Pane: Texas Instruments C2000 Processors (Embedded Coder Support Package for Texas Instruments C2000 Processors).