Main Content

Serial port

Enter the serial port that the target hardware uses

Model Configuration Pane: Hardware Implementation / Simulink or Embedded Coder Hardware Support Package / Hardware board settings / Target hardware resources / External mode

Description

The Serial port parameter defines the serial port that the target hardware uses.

Settings

COM1 | COM20

Enter the serial port that the target hardware uses.

To find the serial port:

  1. Go to Start menu > Control Panel > Device Manager > Ports (COM & LPT).

  2. To expand the ports, that Windows recognizes, click the plus (+) sign. The port that you want is STMicroelectronics STLink Virtual COM Port (COMx). x is the number of the port.

    For example, if the serial port is labeled as STMicroelectronics STLink Virtual COM Port (COM1), in the Serial port parameter, specify the serial port as COM1.

This parameter is enabled only if Communication interface is set as Serial (using XCP).

Recommended Settings

No recommendation.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2014b