Last edited 4 months ago

How to open several serial consoles

Applicable for STM32MP21x lines, STM32MP25x lines

1. Open 2 serial consoles in STM32CubeIDE[edit | edit source]

For example, on OS Ubuntu, they are available as USB0 & ACM0.

  • The default one (ACM0 or USB0) is used for the Arm®-Cortex®-A35 (OSTL). It is available clicking on "MPU Serial console icon" . It is recommended to detach the associated windows. This can be done thanks to right menu on Console tab.
  • An additional console (ACM1 or USB1) is needed for Arm®-Cortex®-M33 (FwST-M). To add a console, goes in menus Window > Show View > Other... then Connections > Connections window. New connection icon opens a wizard where Serial Port can be selected.
  • Configure it for example set in "Serial Port": "/dev/ttyUSB1" and click on finish.


  • Then, open a new the console with Open Console icon from Console window, then Command Shell Console and select the new serial configuration that you generated previously in Connections setting.
  • It is possible to detach it to have the two consoles always displayed or you can click again on Open Console icon and select New Console View.
  • In the console window, a button Display Selected Console is also available to select which console to display.

2. Open 2 serial consoles with minicom[edit | edit source]

It is possible to access to the serial consoles via a serial communication program out of CubeIDE. The serial terminal allows communicating with the board through an UART serial interface.

Several programs exists, but below you have a description with "minicom".

  • Install minicom
sudo apt-get install minicom
  • Get the ttyACM device instance that needs to be used to access the ST-LINK/V3EC
ls /dev/ttyACM*
/dev/ttyACM0  /dev/ttyACM1

or the ttyUSB device if you are on STM32MP21

ls /dev/ttyUSB*
/dev/ttyUSB0  /dev/ttyUSB1
  • Connect the minicom to the /dev/ttyACM0 device (or /dev/ttyUSB0), which is related to A35.
minicom -D /dev/ttyACM0
Welcome to minicom 2.8

OPTIONS: I18n 
Port /dev/ttyACM0, 15:56:03

Press CTRL-A Z for help on special keys

Open a new terminal and open the CM33 console by choosing /dev/ttyACM1 or /dev/ttyUSB1:

minicom -D /dev/ttyACM1
Welcome to minicom 2.8

OPTIONS: I18n 
Port /dev/ttyACM1, 15:56:03

Press CTRL-A Z for help on special keys