Skip to main content
Associate
September 27, 2026
Question

problems encounters during a day spent with STMCube, MX and ST-link

  • September 27, 2026
  • 0 replies
  • 4 views

I’ve just recently started with the STM32 tool chain so some of these may be answered elsewhere. Platform is Debian.

Some problems have been encountered due to the editor in STM Cube IDE doing unexpected things, one of which led to the loss of a considerable amount of code. In general the editor is a bit week compared with e.g. Sublime text   Your IDE designers should try that - when copying and pasting, the indentations are correct, with CUBE the text ends up over indented. I’m now editing in Sublime and then pasting the complete text into Cube.

ST-link problem: This has a uart channel, on my STM32F4 Nucleo board, this is prewired to UART3 of the target, for printf type debugging. However, there is limited documentation on connecting a terminal to this UART (ST-Link PC end), and the listings in the /dev folder are :

The debian terminal program “screen” will not connect to any of these. 

Also, on the redirection of printf on the target: most of the on-line resources for this topic indicate that the “_write()” function or the putchar() function can be over written in main.c, but I found this did not work, and that the function had to be edited in syscalls.c .