Main Content

Host-board connection

Use the host-board connection parameters to set the serial communication port and baud rate between your Arduino® board and your host computer.

Application download

Use the parameters in this section to select the upload type and set the serial communication port and baud rate between your Arduino board and host computer to deploy a Simulink® model on your Arduino hardware.

Depending on your application and requirements, you can set the upload type for your Simulink model on your Arduino board to USB, OTA Setup, or OTA Upload and configure the dependent parameters in the Configuration Parameters dialog box accordingly.

These parameters are enabled in the Configuration Parameters dialog box when you set Select upload method to USB.

Parameter NameDescriptionDefault Values and OptionsDependenciesSupported Arduino Boards
Set host COM port

Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.

  • Automatically — Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.

    Note

    You cannot detect the COM port automatically for Arduino Nano 3.0, ESP32–WROOM and ESP32–WROVER Arduino compatible boards.

  • Manually select — Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.

    Click Refresh to populate the available COM ports in the Host COM Port drop-down list.

  • Manually specify — Enter the COM port in the Host COM Port parameter to establish a serial communication between the Arduino board and your host computer.

  • Automatically (Default)

  • Manually Select

  • Manually Specify

NoneAll Arduino boards
Baud rateSelect the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.

921600 (Default)

None
  • Arduino Due — 115200

  • Arduino Leonardo — 57600

  • Arduino MKR Wi-Fi® 1010 — 921600

  • Arduino MKR 1000 — 921600

  • Arduino MKR Zero — 921600

  • Arduino Mega 2560 — 115200

  • Arduino Mega ADK — 115200

  • Arduino Micro — 57600

  • Arduino Nano 33 BLE Sense — 921600

  • Arduino Nano 33 IoT — 921600

  • Arduino Robot Control Board — 57600

  • Arduino Robot Motor Board — 57600

  • Arduino Uno — 115200

  • Arduino Uno R4 Minima — 115200

  • Arduino Uno R4 Wi-Fi — 115200

  • ESP32–WROOM — 921600

  • ESP32–WROVER — 921600

Application download baud rateSelect the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.
  • 115200 (Default-New Bootloader)

  • 57600 (Old Bootloader)

To enable this parameter, set Hardware board to any one of the supported Arduino boards and Set host COM port to Manually Select or Manually Specify.

Arduino Nano 3.0

Bootloader COM Port

Enter a new COM port of the bootloader. For more information, see Manually Configure COM Port and Bootloader on Host.

Click Refresh to populate the available bootloader COM ports.

<empty>To enable this parameter, set Hardware board to any one of the supported Arduino boards and Set host COM port to Manually Select or Manually Specify.
  • Arduino Leonardo

  • Arduino Nano 33 BLE Sense

  • Arduino Micro

  • Arduino Nano 33 BLE Sense

  • Arduino Robot Control Board

  • Arduino Robot Motor Board

These parameters are enabled in the Configuration Parameters dialog box when you set Select upload method to OTA Setup.

Parameter NameDescriptionDefault Values and OptionsSupported Arduino Boards
Set OTA device nameEnter a name for your Arduino board.OTA_DeviceName
  • Arduino MKR Wi-Fi 1010

  • Arduino MKR 1000

  • Arduino Nano 33 IoT

  • Arduino Uno R4 Wi-Fi

Set OTA device passwordEnter a password for your Arduino board. The board authenticates this password during the code deployment process in the OTA upload mode.OTA_DevicePassword

These parameters are enabled in the Configuration Parameters dialog box when you set Select upload method to OTA Upload.

Parameter NameDescriptionDefault Values and OptionsSupported Arduino Boards
Target deviceSelect your Arduino board from the drop-down menu. Click Refresh to repopulate the board list.Specify IP address
  • Arduino MKR Wi-Fi 1010

  • Arduino MKR 1000

  • Arduino Nano 33 IoT

  • Arduino Uno R4 Wi-Fi

Target board IP addressIf your Arduino board is not listed in the drop-down menu of the Target device parameter, you can manually specify the IP address of your board.192.168.137.0
Device passwordEnter the password of your Arduino board to authenticate OTA code deployment on your board.OTA_DevicePassword

Connected I/O communication

Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer to communicate with the IO peripherals on your Arduino board during a hardware simulation.

Hardware Serial Port

Select the serial port of your Arduino board.

Set host COM port

Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.

Settings

Default: Automatically

  • Automatically — Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.

  • Manually select — Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.

    Click Refresh to populate the available COM ports in the Host COM Port drop-down list.

  • Manually specify — Enter the COM port in the Host COM Port parameter to establish serial communication between the Arduino board and your host computer.

Baudrate

Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.

Set Baudrate to Specify to enter a baud rate supported by your Arduino board.

Note

For Arduino AVR boards mounted with CH340 or any other serial to USB converter, use the baud rate of 115200 or less in the connected IO mode.

Settings

Default: 921600

115200, 76800, 57600, 38400, 28800, 19200, 14400, 9600, 4800, 2400, 300, Specify

External Mode over Serial communication

Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer to monitor and tune a Simulink model on your Arduino hardware.

Hardware Serial Port

Select the serial port of your Arduino board.

Set host COM port

Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.

Settings

Default:Automatically

  • Automatically — Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.

  • Manually select — Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.

    Click Refresh to populate the available COM ports in the Host COM Port drop-down list.

  • Manually specify — Enter the COM port in the Host COM Port parameter to establish a serial communication between the Arduino board and your host computer.

Baudrate

Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.

Set Baudrate to Specify to enter a baud rate supported by your Arduino board.

Note

For Arduino AVR boards mounted with CH340 or any other serial to USB converter, use the baud rate of 115200 or less in the connected IO mode.

Settings

Default: 921600

115200, 76800, 57600, 38400, 28800, 19200, 14400, 9600, 4800, 2400, 300, Specify

PIL communication

Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer during a processor-in-the-loop (PIL) simulation.

Hardware Serial Port

Select the serial port of your Arduino board.

Set host COM port

Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.

Settings

Default:Automatically

  • Automatically — Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.

  • Manually select — Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.

    Click Refresh to populate the available COM ports in the Host COM Port drop-down list.

  • Manually specify — Enter the COM port in the Host COM Port parameter to establish a serial communication between the Arduino board and your host computer.

Baudrate

Select the maximum speed of downloading a PIL executable of the Simulink model on your Arduino board in bits per second.

Set Baudrate to Specify to enter a baud rate supported by your Arduino board.

Settings

Default: 921600

115200, 76800, 57600, 38400, 28800, 19200, 14400, 9600, 4800, 2400, 300, Specify