u/UnicycleBlokeC++ advocatein r/embedded • Recommends
On “Stm32 and printing back out to host terminal.”
The ST-Link is mainly for programming and debugging. There are other ways to get debug messages out of the board, but I've always used a separate UART - it's been more than sufficient, and the same UART is generally used to provide a console on the target device for its users on production boards.
One of my colleagues messed about with the SWO capabilities of the chip. He needed a high data rate and what he got was quite impressive - 50MHz. You might be interested in this which seems to be built on that. You are not using HAL/CubeIDE, so this won't be super helpful. Search for SWV (Serial Wire View) Trace.
As I said, you should try to work out how printf() or whatever has been implement…