Redirect printf() to COM port
A simple question.
I have loaded & run the NUCLEO-F401RE \Projects\STM32F401RE-Nucleo\Examples\UART\UART_Printf example.
The project sends printf() to COM.
I have cut and paste the __io_putchar(int ch) code into my own project.
__io_putchar() does not get called & so no output.
I can output ok using HAL_UART_Transmit() but would rather capture printf().
The example code contains the comment 'With GCC, small printf (option LD Linker->Libraries->Small printf set to 'Yes') calls __io_putchar()' so I guess I have to change a project option or two.
I cannot find the option or anything similar however.