Main Content

Model Configuration Parameters for Simulink Support Package for Arduino Hardware

Hardware Implementation Pane Overview

Configuration Parameters: Arduino

  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 Arduino Pro.

  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.

See Also

Hardware board

Select the hardware board upon which to run your model.

Changing this parameter updates the dialog box display so that it displays parameters that are relevant to your hardware board.

To install support for a hardware board, start the Support Package Installer by selecting Get Hardware Support Packages. Alternatively, in the MATLAB® Command Window, enter supportPackageInstaller.

After installing support for a hardware board, reopen the Configuration Parameters dialog box and select the hardware board.


Default: None if the specified system target file is ert.tlc, realtime.tlc, or autosar.tlc. Otherwise, the default is Determine by Code Generation system target file.


No hardware board is specified. The system target file specified for the model is ert.tlc, realtime.tlc, or autosar.tlc.

Determine by Code Generation system target file

Specifies that the system target file setting determines the hardware board.

Get Hardware Support Packages

Invokes the Support Package Installer. After you install a hardware support package, the list includes relevant hardware board names.

Hardware board name

Specifies the hardware board to use to implement the system this model represents.


  • When you select a hardware board, parameters for board settings appear in the dialog box display.

  • After you select a hardware board, you can select a device vendor and type.


The Device vendor and Device type parameter values reflect available device support for the selected hardware board.

When you select a hardware board, the selection potentially changes the Toolchain parameter value and other configuration parameter values. For example, if you change the hardware board selection to ARM Cortex-A9 (QEMU), the Toolchain parameter value changes to a supported toolchain, such as Linaro Toolchain v4.8.

Command-Line Information

Parameter: HardwareBoard
Type: character array
Default: 'Determine by Code Generation system target file'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Build Options

ParameterDescriptionDefault Value
Build action

Option to specify whether you want only build or build, load, and run actions during code generation.

Build, load, and run

Disable parallel buildOption to compile the generated code and driver source codes in parallel order for faster build and deployment
Enable force rebuild of static libraryOption to create Arduino® library files only when the Simulink model is compiled for the first time for faster build and deployment

Host-board connection

ParameterDescriptionDefault Value
Set host COM portOptions to either automatically detect or manually set the COM port your computer uses to communicate with the hardware board.Automatically
Set COM port numberThe port on the computer that connects the Arduino hardware to the computer.1
Bootloader COM portThe port on the computer that connects the Arduino bootloader to the computer.2

Connected I/O

ParameterDescriptionDefault Value
Enable Connected I/OOption to enable Connected I/O during Normal mode simulationSelected

Overrun detection

ParameterDescriptionDefault Value
Enable overrun detectionOption to enable overrun detectionNot selected

Analog input channel properties

ParameterDescriptionDefault Value
Analog input reference voltage

Option to set the reference voltage used to measure inputs to the ANALOG IN pins.


Serial port properties

ParameterDescriptionDefault Value
Serial 0 baud rate, Serial 1 baud rate, Serial 2 baud rate, Serial 3 baud rate

Options to set the baud rate of the serial port on the Arduino hardware.


I2C properties

ParameterDescriptionDefault Value
I2C Bus speed (Hz)

Option to specify the rate of data communication between the peripherals connected by the I2C bus.


SPI properties

ParameterDescriptionDefault Value
SPI clock out frequency (in MHz)

Option to select a value from the list of master clock frequency to obtain an SPI clock frequency.

SPI mode

Options to set an SPI mode for data transmission.

Mode 0 – Clock Polarity 0, Clock Phase 0
Bit order

Options to select the bit order for transmissions.

MSB first
SD Card SPI SS pin

The Slave Select (SS) pin that your SD card shield uses for SPI communication with the connected SD card.

CAN SPI SS pinThe Slave Select (SS) pin that your CAN shield uses for SPI communication.3

Ethernet shield properties

ParameterDescriptionDefault Value
Use static IP address and disable DHCP

Option to disable the DHCP.

IP address (Ethernet shield)

The IP address of the Arduino Ethernet shield.
MAC address

The machine address of the Arduino Ethernet shield.


WiFi properties

ParameterDescriptionDefault Value
WiFi hardwareSelect the WiFi hardware that you use for Wi-Fi connectivity.WiFi shield
Use static IP address and disable DHCP

Option to disable the DHCP.

Not selected
IP address

Enter the IP address of the Arduino WiFi shield.
Service set identifier (SSID)The SSID of your network. yourNetwork
WiFi encryption

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

WEP key

The WEP key of the network.

WEP key index

The WEP key index of the network.

WPA passwordThe WPA password of the network. secretPassword
Hardware Serial PortSelect the port on the Arduino board that is connected to ESP8266.Serial 0

ThingSpeak properties

ParameterDescriptionDefault Value
Connect to custom ThingSpeak serverThe option to connect to the custom ThingSpeak server. Otherwise, the ThingSpeak block connects to the default address of through port 80.Selected
Server IP address

Specify the IP address of the custom ThingSpeak server.

Specify the port number through which the ThingSpeak block connects to the ThingSpeak server.


External mode

ParameterDescriptionDefault Value
Communication interface

Options that you can select for the ThingSpeak block to connect to the ThingSpeak server.

Serial — For AVR-based boards.

XCP on Serial — For ARM-based boards.

Host interface

Interface through which host computer communicates to target hardware for signal monitoring and parameter tuning.


This parameter appears only if you choose XCP on Serial as the Communication interface.


Logging buffer size (in bytes)Specify the memory buffer size for XCP-based External mode simulation.2048
VerboseThe option to view the External Mode execution progress and updates in the Diagnostic Viewer or in the MATLAB Command Window. Not selected

CAN properties

ParameterDescriptionDefault Value
CAN Bus Speed (kBit/s)Bus speed in kilo bits per second.500
Oscillator Frequency (MHz)Oscillator frequency in mega hertz.16
Interrupt PinInterrupt pin value to enable reading the message.12
Allow All MessagesOption to allow all messages.Off
Buffer 0 ID TypeBuffer 0 id type.Normal
Buffer 0 Acceptance Mask (RXMO)Value for buffer 0 acceptance mask (RXMO).0
Buffer 0 Acceptance Filter (RXF0)Value for buffer 0 acceptance filter (RXF0).255
Buffer 0 Acceptance Filter (RXF1)Value for buffer 0 acceptance filter (RXF1).255
Buffer 1 ID TypeBuffer 1 id type.Normal
Buffer 1 Acceptance Mask (RXM1)Value for buffer 1 acceptance mask (RXM1).0
Buffer 1 Acceptance Filter (RXF2)Value for buffer 1 acceptance filter (RXF2).255
Buffer 1 Acceptance Filter (RXF3)Specify a value for buffer 1 acceptance filter (RXF3).255
Buffer 1 Acceptance Filter (RXF4)Value for buffer 1 acceptance filter (RXF4).255
Buffer 1 Acceptance Filter (RXF5)Value for buffer 1 acceptance filter (RXF5).255

Modbus properties

ParameterDescriptionDefault Value
Communication InterfaceType of communication interface that the block will use for MODBUS® communicationRS485
ModeMODBUS mode of operationMaster
Slave IDSlave 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 master waits for a response from MODBUS server100

RS485 properties

ParameterDescriptionDefault Value
Serial ModuleSerial module (port) that the block will use for MODBUS communication Serial 1
BaudRateBaud rate of MODBUS communication9600
ConfigurationDate frame configuration for Modbus communication blocksSERIAL_8N1
DE PinData Enable pin number8
RE PinReceive Enable pin number9