Main Content

External Mode

Communication interface

Select the transport layer external mode uses to exchange data between the host and the target hardware.

Settings for STM32F4/STM32F746G/STM32F769I-Discovery/STM32F4xx Based

Default: Serial

Settings for STM32L475VG-Discovery

Default:Serial (using XCP)

Else select TCP/IP (using XCP). The following are the limitations when executing the model in external mode over TCP/IP (using XCP).

  • External mode over TCP/IP is not supported if the model consists of WiFi TCP Receive/Send or ThingSpeak Read/Write blocks.

  • The model sample time should not be less than 50ms.

Serial port

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.

Settings for STM32F4-Discovery

Default: COM1

Settings for STM32F746G-Discovery

Default: COM20

Settings for STM32F769I-Discovery

Default: COM1

Settings for STM32L475VG-Discovery

Default: COM20

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

Logging buffer size (in bytes)

Specify the logging buffer size.

Settings for STM32L475VG-Discovery

Default: 5000

Settings for STM32F4xx Based

Default: 1024

Use a dedicated timer to improve time stamp accuracy

Enable the Use a dedicated timer to improve time stamp accuracy parameter if you want to use dedicated timer to log data in real time. If this parameter is not selected, data is logged with simulation time.

To use Display and Scope blocks in a model, ensure that the Use a dedicated timer to improve time stamp accuracy parameter is disabled.

Settings for STM32L475VG-Discovery

Default: on

Settings for STM32 Based Boards

Default: on

Verbose

Select this check box to view the external mode execution progress and updates in the Diagnostic Viewer or in the MATLAB® Command Window.

Settings for STM32F4-Discovery

Default: off

Settings for STM32F746G-Discovery

Default: on

Settings for STM32F769I-Discovery

Default: on

Settings for STM32L475VG-Discovery

Default: on

Settings for STM32F4xx Based

Default: on

See Also

| | |