Revision as of 14:24, 13 February 2020 by Registered User


It can be interesting to run simultaneously one IDE and STM32CubeMonitor for debug perspective. This feature is called as "Shared mode".

Shared mode allow user to use STM32CubeMonitor in parallel of other application allowing shared mode like :

  • STM32CubeIDE
  • IAR Embedded Workbench
  • ...


Two communication protocols are available :

Below a example of a probe connected in shared mode. The connection status is visible in the flow by indicating "tcp connected".

flow in tcp mode
  • "p2p" connect directly to the probe which guarantees high rate of acquisition (default)
  • "tcp" to pass through to tcp-server assuming the stLinkServer is installed on the host. Shared mode corresponding to "tcp" mode.

To set connection type mode, user can change the connectionType in file settings.js. See STM32CubeMonitor:How to change general settings.

{{ReviewsComments| LDE : add screenshot of tcp status on acq in or acq out node - PDE OK - LDE il manque une petite phrase d'explication de ce

1. How to set shared mode with STM32CubeIDE

Open Debug Configurations pane,

go in Debugger tab,

select the option “Enable shared ST-LINK”

2. How to set shared mode with IAR Embedded workbench IDE

To enable TCP mode in IAR Embedded Wokbench IDE,

Go to Project > Options > Debugger > Extra Options,

add in command line options : --stlink_use_server