I followed the instruction to enable semihosting by creating a basic project using cubeMx for a blue pill(STM32F103C8T6) with no success. semi hosting was effectively enabled (console output) but the printf triggers a hardFault_Handler ().
However, I tried the same instructions with 32F429IDISCOVERY board and the printf works fine on the openOSD console.
Any ideas ??