Main Content

Model Configuration Parameters for STMicroelectronics STM32L475VG-Discovery (B-L475E-IOT01A) Board

Hardware Implementation Pane Overview

Default Hardware Implementation Pane

Configure hardware board to run Simulink® models.

  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 STM32L475VG-Discovery (B-L475E-IOT01A).

  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. To apply the changes, click Apply.

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

Build Options

ParameterDescriptionDefault Value

Build action

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

Build, load, and run

Set host drive

Defines how Embedded Coder sets the drive to download the executable on the hardware board.

Automatically

Drive

Sets the drive to download the executable.

F:

Clocking

ParameterDescriptionDefault Value

Clocking

The CPU clock frequency in MHz.

80

WiFi

ParameterDescriptionDefault Value

Use static IP address and disable DHCP

Option to disable the DHCP.

off

IP address

Sets the IP address of the board.

192.168.0.103

Subnet mask

Sets the subnet mask for the board.

255.255.255.0

Gateway

Sets the gateway required to access the target computer.

192.168.0.1

Service set identifier (SSID)

The SSID of your network.

yourNetwork

WiFi encryption

The WiFi encryption of the network to which you are connected.

None

WEP key

The WEP key of the network.

D0D0DEADF00DABBADEAFBEADED

WEP key index

The WEP key index of the network.

0

WPA password

The WPA password of the network.

secretPassword

I2C#

ParameterDescriptionDefault Value

Bus speed (in Hz)

Defines the rate of data communication between the peripherals connected by the I2C bus.

100000

Serial clock (SCL) pin

The SCL pin for I2C communication.

D15

Serial data (SDA) pin

The SDA pin for I2C communication.

D14

SPI#

ParameterDescriptionDefault Value

Bus speed (in Hz)

Defines the rate of data communication between the peripherals connected by the SPI bus.

1000000

Serial data out (SDO) pin

Sets the pin that connects the controller output to the peripheral input.

PA_#

Serial data in (SDI) pin

Sets the pin that connects the peripheral output to the controller input.

PA_#

Clock (SCK) pin

Sets serial clock (SCK) pin.

PA_#

SCI#

ParameterDescriptionDefault Value

Baudrate (in Hz)

Defines how fast the data is sent over a serial line.

115200

Receive pin

Sets the receiving pin of UART.

USBRX

Transmit pin

Sets the transmitting pin of UART.

USBTX

Data bits length

Sets the number of data bits to transmit.

8

Parity

Sets the type of parity checking to identify low-level errors.

None

Stop bits

Sets the number of stop bits to indicate end of a packet.

1

Modbus

ParameterDescriptionDefault Value
Communication InterfaceType of communication interface that the block will use for Modbus® communicationRS485
ModeModbus mode of operationClient
Server IDServer device address or identifier1
Configure CoilsConfigure coil register parametersSelected
Configure Discrete InputsConfigure discrete input register parametersSelected
Configure Holding registersConfigure holding register parametersSelected
Configure Input registersConfigure input register parametersSelected
Received timeout (ms)Maximum time in milliseconds the controller waits for a response from Modbus server100

RS485

ParameterDescriptionDefault Value
Serial ModuleSerial module (port) that the block will use for Modbus communication SCI 0
DE PinData Enable pin number8
RE PinReceive Enable pin number9

PIL

ParameterDescriptionDefault Value

PIL communication interface

Sets the interface used for PIL communication.

Serial

Serial port

Sets the serial port for PIL communication.

COM1

PIL Baud Rate

Sets the baud for PIL communication.

115200

External Mode

ParameterDescriptionDefault Value

Communication interface

Sets the transport layer used to exchange data between host and hardware.

Serial(using XCP)

Serial port

Sets the serial port on the hardware board.

COM20

Logging buffer size (in bytes)

Specify the logging buffer size.

5000

Use a dedicated timer to improve time stamp accuracy

Enable the parameter to use a dedicated timer to improve the time stamp accuracy.

on

Verbose

Sets to view external mode execution progress and updates.

on