printf through uart Posted by toru-ohtsuka on 2017-12-13 09:35 Hello, I think it is need to add "extern C". I tried and worked well. . #ifdef __cplusplus extern "C" { #endif int __io_putchar(int ch) { HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF); return ch; } #ifdef __cplusplus } #endif