Getting printf to work, ARM Semihosting, STM32

When using the CubeMX platform on a nucleo board the printf(“test\n”) compiles and runs but nothing ever shows up in the platformio terminal window IDE. Is there a configuration setting somewhere that will allow this to work?

You might need to implement UART, see example https://github.com/platformio/platformio-examples/blob/develop/unit-testing/stm32cube/test/unittest_transport.c

Which Nucleo board do you have? Those should have an ST-Linkv2 on-board which gives you the serial port. How do you initialize your UART, and on which pins?