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 Consoletab. - 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...thenConnections>Connectionswindow.New connectionicon opens a wizard whereSerial Portcan be selected. - Configure it for example set in "Serial Port": "/dev/ttyUSB1" and click on finish.
- Then, open a new the console with
Open Consoleicon fromConsole window, thenCommand Shell Consoleand select the new serial configuration that you generated previously inConnectionssetting. - It is possible to detach it to have the two consoles always displayed or you can click again on
Open Consoleicon and selectNew Console View.
- In the console window, a button
Display Selected Consoleis 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
ttyACMdevice 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/ttyACM0device (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