Question
STM32F091RC - How to have printf output on /dev/ttyACM0
Posted on July 14, 2017 at 13:35
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?
