AnsweredAssumed Answered

STM32F091RC - How to have printf output on /dev/ttyACM0

Question asked by Mant Sandy on Jul 14, 2017
Latest reply on Jan 29, 2018 by Andrew Neil

With mbed-os  `printf("Hello world");` would print "Hello world" on ttyACM0


How can I achieve the same this using STMCube32 HAL API's?


Initially printf() was giving me some undefined reference errors in sbrk() system call errors.

I added `-specs=nosys.specs` to linker flags. the compilation was successful.

But cat /dev/ttyACM0 does not show any prints.


How can I get printf working on ttyACM0?