Main Content

Model Configuration Parameters for Texas Instruments F2838x (ARM Cortex-M4)

To configure hardware parameters for Texas Instruments® F2838x ARM® Cortex®-M4 processor:

  1. In the Simulink® Editor, select Modeling > Model Settings.

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

  3. Set the Hardware board parameter to your TI F2838x and select the processing unit as CortexM4.

  4. Click Apply.

Hardware Board Settings

For each hardware board you select, you can configure the board parameters according to your requirements.

Build Options

ParameterDescriptionDefault Value

Build action

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

Build, load, and run

Device name

Select your device from the selected processor family.

F28388D

Disable parallel build

Select to compile the generated code and driver source codes in parallel order for faster build and deployment speed.

off

Boot From Flash (stand alone execution)

Specify if the application loads to the flash memory.

enabled

Use custom linker command file

Indicates that the custom linker command file must be used during the build action.

off

Linker command file

The path to the memory description file required during linking.

 

CCS hardware configuration file

The Code Composer Studio™ file required for downloading the application on the hardware.

 

Clocking

ParameterDescriptionDefault Value

Enter the 'Connectivity Manager (ARM Cortex-M) clock in MHz' value calculated in C28x CPU1

Value of this parameter must be same as the value of the parameter 'Connectivity Manager (ARM Cortex-M) clock in MHz' (auto calculated in CPU1 model).

100

UART

ParameterDescriptionDefault Value

Enable UART Loopback

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

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.

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.

GPIO84

Pin assignment(Rx)

Select a GPIO pin as UART pin for data reception.

GPIO85

Enable receive interrupt

This parameter is enabled by default for updating DMA configuration after data receive.

Selected

Enable transmit interrupt

Select this parameter to trigger an ISR from an UART Transmit block. This will trigger UART interrupt when DMA copies any data to FIFO.

Not selected

Ethernet

ParameterDescriptionDefault Value

Enable DHCP for local IP address assignment

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

Not selected

Local IP address

Select this parameter to set the IP address of the board.

192.168.1.8

Subnet mask

Specify the subnet mask for the board.

255.255.255.0

Gateway

Set the serial gateway to the gateway required to access the target computer.

192.168.1.1

MAC address

Specify the media access control (MAC) address, the physical network address of the board.

A8-63-F2-00-00-80

Overrun detection

ParameterDescriptionDefault Value

Enable overrun detection

Enable to notify when task overrun occurs.off

Set/Clear/toggle GPIO

Enable to select GPIO action.on

Digital output pin to set an overrun

Specify the GPIO number of a digital output.34

GPIO set mode

Select the GPIO mode. Set

Additional notification option

Select the option to notify when task overrun occurs.None

Interrupt number

Specify the interrupt number to trigger on overrun.1

Name of the function

Specify the name of the C function to call on overrun.C2000_OverunFunction

MCAN

ParameterDescriptionDefault Value

Protocol mode

Select the CAN type. Classic CAN or CAN-FD.CAN-FD

MCAN module clock frequency (=connectivity manager (ARM Cortex-M) clock)in MHz

Displays the MCAN module clock frequency in MHz.100

MCAN bit clock frequency (MCAN module clock freq/4) in MHz

Displays the MCAN bit clock frequency in MHz.25

Nominal bit rate prescaler (NBRP: 1 to 512)

Nominal bit rate prescaler. The value by which the oscillator frequency is divided for generating the bit time quanta.1

Nominal time segment 1 (NTSEG1: 2 to 256)

Nominal time segment before sample point.22

Nominal time segment 2 (NTSEG2: 2 to 128)

Nominal time segment after sample point.2

Closest achievable nominal baud rate (MCAN bit clock/NBRP/(NTSEG1+NTSEG2)) in bits/sec

Closest achievable nominal MCAN baud rate in bits/sec.1000000

Nominal re-synchronization jump width (NSJW: 1 to 128)

Nominal Resynchronization Jump Width (NSJW).1

Enable bit rate switching

Enables bit rate switching between nominal bit rate and data bit rate. off

Data bit rate prescaler (DBRP: 1 to 32)

Data Bit Rate Prescaler (DBRP). The value by which the oscillator frequency is divided for generating the bit time quanta.1

Data time segment 1 (DTSEG1: 1 to 32)

Data time segment before sample point (DTSEG1).22

Data time segment 2 (DTSEG2: 1 to 16)

Data time segment after sample point (DTSEG2).2

Data baud rate (MCAN bit clock/DBRP/(DTSEG1+DTSEG2)) in bits/sec

Closest achievable MCAN data baud rate calculated based on data parameters and given formula.1000000

Data re-synchronization jump width (DSJW: 1 to 16))

Data resynchronization jump width (DSJW).1

Mode

Select the operating mode for MCAN.Normal

Pin assignment(Tx)

Select a GPIO pin for the MCAN data transmission.GPIO 31

Pin assignment(Rx)

Select a GPIO pin for the MCAN data reception.GPIO 30

Transmission mode

Select the mode of transmission.FIFO

Enable blocking mode for Rx FIFO 0

Enable blocking mode for FIFO 0 data reception.off

Enable blocking mode for Rx FIFO 1

Enable blocking mode for FIFO 1 data reception.off

Update global filter configuration

Enable this parameter to update standard and extended filter IDs. off

Reject remote frames standard

Rejects all remote frames with 11-bit standard IDs when enabled else the remote frames will be filtered as per the settings from Update standard filter elements. on

Reject remote frames extended

Rejects all remote frames with 29-bit extended IDs when enabled else the remote frames will be filtered as per the settings from Update extended filter elements. on

Non-matching frames extended

Defines how received messages with 11-bit standard IDs that do not match any element from Update standard filter elements are treated.Reject

Non-matching frames standard

Defines how received messages with 29-bit extended IDs that do not match any element from Update extended filter elements are treated.Reject

Update standard filter elements

Enable this parameter to update the standard 11bit ID filter elements parameters.off

Select standard filter

Select the standard message ID filter elements.0

Filter # configuration

Select the standard filter element configuration.Disable filter element

Filter # type (filter type will be ignored if filter configuration is stored into Rx buffer)

Select the standard filter type.Classic ID and mask filter (ID1 = filter, ID2 = mask)

Filter # ID1

Specify the standard Filter ID 1.0

Filter # ID2

Specify the standard Filter ID 2.0

Update extended filter elements

Enable to update the extended filter elements.off

Select extended filter

Select the extended message ID filter elements.0

Filter # configuration

Select extended filter element configuration.Disable filter element

Filter # type (filter type will be ignored if filter configuration is stored into Rx buffer)

Select the extended filter type.Classic ID and mask filter (ID1 = filter, ID2 = mask)

Filter # ID1

Specify the first ID of extended ID filter element. 0

Filter # ID2

Specify the second ID of extended ID filter element.0

Display configured extended and standard filters elements in command window

Click on Display configured extended and standard filters elements in command window button to view the configured standard and extended filter elements in MATLAB® command window. 

Reset standard filters configurations

Click Reset standard filters configurations to reset the configured standard filter configurations. 

Reset extended filters configurations

Click Reset extended filters configurations to reset the configured extended filter configurations. 

Configure memory

Select to configure the memory and its parameters.off

Maximum element size in TX FIFO (in bytes)

Select the maximum data size of CAN FD message in transmit FIFO.64

Maximum element size in RX FIFO 0 (in bytes)

Select the maximum data size of CAN FD message in receive FIFO 0.64

Maximum element size in RX FIFO 1 (in bytes)

Select the maximum data size of CAN FD message in receive FIFO 1.64

Maximum element size in RX buffer (in bytes)

Select the maximum data size of CAN FD message in receive buffer.64

Number of elements in TX FIFO Queue

Select the number of elements (data + header CAN FD message) in transmit FIFO/Queue.32

Number of elements in RX FIFO 0

Select the number of elements (data + header CAN FD message) in receive FIFO 0. Auto allocate

Number of elements in RX FIFO 1

Select the number of elements (data + header CAN FD message) in receive FIFO 1.Auto allocate

Validate memory

Click Validate memory button to validate all the memory configurations. 

Configure receive interrupt sources

Select this option to display receive interrupt sources for configuration.off

Configure RX buffer interrupt sources

Select this option to display buffer interrupt sources for configuration.off

Dedicated RX buffer message

Select the dedicated interrupt line for receive buffer message.Disable

High priority message

Select the dedicated interrupt line for high priority message.Disable

Configure RX FIFO 0 interrupt sources

Select this option to display receive FIFO 0 interrupt sources for configuration.off

RX FIFO 0 new message

Select the interrupt line for receive FIFO 0 new message.Disable

RX FIFO 0 full

Select the interrupt line for receive FIFO 0 full.Disable

RX FIFO 0 message lost

Select the interrupt line for receive FIFO 0 message lost.Disable

RX FIFO 0 watermark

Select the interrupt line for receive FIFO 0 watermark.Disable

Configure RX FIFO 1 interrupt sources

Select this option to display receive FIFO 1 interrupt sources for configuration.off

RX FIFO 1 new message

Select the interrupt line for receive FIFO 1 new message.Disable

RX FIFO 1 full

Select the interrupt line for receive FIFO 1 full.Disable

RX FIFO 1 message lost

Select the interrupt line for receive FIFO 1 message lost.Disable

RX FIFO 1 watermark

Select the interrupt line for receive FIFO 1 watermark. Disable

Configure transmit interrupt sources

Select this option to display transmit interrupt sources for configuration.off

Configure TX FIFO interrupt sources

Enable to configure the transmit FIFO interrupt sources.off

Transmission complete

Select the transmission interrupt line for transfer complete.Disable

Transmission cancellation finish

Select the transmission interrupt line for transfer cancellation finish.Disable

TX FIFO empty

Select the transmission interrupt line for TX FIFO empty.Disable

Configure TX event FIFO interrupt sources

Select this option to display transmit event FIFO interrupt sources for configuration.off

TX event FIFO new entry

Select the transmission interrupt line for TX event FIFO new entry.Disable

TX event FIFO element lost

Select the transmission interrupt line for TX event FIFO element lost.Disable

TX event FIFO full

Select the transmission interrupt line for TX event FIFO full.Disable

TX event FIFO watermark

Select the transmission interrupt line for TX event FIFO watermark.Disable

Configure other interrupt sources

Select this option to display other interrupt sources for configuration.off

Timestamp wraparound

Select the interrupt line for timestamp wraparound interrupt.Disable

Timeout occurred

Select the interrupt line for timeout occurred interrupt.Disable

Error logging overflow

Select the interrupt line for error logging overflow interrupt.Disable

Warning status

Select the interrupt line for warning status interrupt.Disable

Watchdog event

Select the interrupt line for watchdog event interrupt.Disable

Data protocol error

Select the interrupt line for data protocol error interrupt.Disable

Message RAM access failure

Select the interrupt line for message RAM access failure interrupt.Disable

Bit error uncorrected

Select the interrupt line for bit error uncorrected interrupt. Disable

Error passive status

Select the interrupt line for error passive status interrupt.Disable

Bus off status

Select the interrupt line for bus off status interrupt. Disable

Arbitration protocol error

Select the interrupt line for arbitration protocol error interrupt.Disable

Reserved address access

Select the interrupt line for reserved address access interrupt.Disable

PIL

ParameterDescriptionDefault Value

PIL

Select the type of communication interface to run your model.

Serial

Serial port in MATLAB preferences

Select the COM port used by the target hardware.

COM#

PIL Baud rate (UART Baud rate)

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.

 

External Mode

ParameterDescriptionDefault Value

Communication interface

Select the type of communication interface to run your model in external mode.

XCP on Serial

Serial port in MATLAB preferences

Select the COM port used by the target hardware.

 

Verbose

Select to view the external mode execution progress and updates in the Diagnostic Viewer or in the MATLAB command window.

off

Set logging buffer size automatically

Select to automatically set the number of bytes to preallocate for the buffer in the hardware during simulation.

on

Maximum number of contiguous samples

Specify the maximum number of contiguous samples to be packed in a single packet.

8

For more information on selecting a hardware blockset and general configuration settings, see Hardware Implementation Pane.