Hello,
I am having the same issue – not being able to print to the serial port via printf using mbed. I’m using a Nucelo-L432KC board and created a simple project with the wizard using the blink LED with rtos template.
I tried adding a reference to the Fast Semihosting and Profiler framework and removing mbed_retarget.cpp from the project located in C:\Users\Username\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.mbed\platform. Removing this file caused many errors preventing me from compiling. If I leave the file in, I still get a couple errors (shown below). Was this the wrong file? I searched the project for retarget.cpp, and couldn’t find anything else.
Thanks,
Nate