Hi,
Ok, I see. I understand it that you need to use printf to serial console, sorry.
So - you can use STD C library with debugger I/O support - for example newlib:
jiri_kral_0-1616671028683.png
and enable Semihosting console in debug configurations:
jiri_kral_1-1616671111622.png
You should be able see printf output in Debug session semihosting console.
Hope it helps.
Jiri