Redirect printf for STM32L476 Discovery?
ST’s seminar for the STM32L476 Discovery used IAR tools and the labs included source to redirect printf and scanf to a USART in order to use the STLink debugger connection via a terminal emulator running on a PC.
I’d like to do the same thing with the System Workbench, but I find the gcc-arm toolchain doesn’t work the same as IAR. I found a template online to implement the redirect, but was wondering if anyone has actual working code to do this that they’d care to share.
The directions I found so far indicate the _read() and _write() methods can be rewritten to redirect to/from a USART.
Thanks, Max