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 (ARM Cortex-M4 processor).

  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.

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.

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 and extended filters configurations

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

Update memory configuration

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

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

Related Topics