Is printf debugging over USB with STM32 possible?

I've been doing a lot of searching to try find some examples for printf debugging over USB for the STM32 (specifically stm32f1x). I have found a few examples for UART/USART however I can't find any for USB. Can anyone tell me if this is indeed possible and if it is point me to some examples?

Thanks.

• I've only done a very limited amount with the STM32 series but just thought I'd check if you're aware that equivalent of a UART for USB is the CDC device class? Not sure if any one them work for that particular device but a search on "stm32 cdc" gives a few results. – PeterJ Jan 18 '15 at 13:23
• I agree with @TurboJ's answer - better to use a UART. You (or future readers) may also find my answer here useful. electronics.stackexchange.com/questions/206113/… – cp.engr Jan 13 '17 at 5:42

There is CDC example code that one could use for printf().
• OpenOCD ships with a lib that can printf() over JTAG on Cortex M cores: DCC. – Turbo J Jan 18 '15 at 19:26