In windows7, my project (iar) can send string to serial ports with printf, but in ubuntu 18.04 (stm32cubeide), HAL_UART_Transmit can send char, but it seems that printf do nothing. Thanks for your help.
I move __io_putchar from main file to syscalls.c, so now __io_putchar can be called after _write() was called.I see the "test" with cutecom now...But I don't know if I should do it(move __io_putchar to syscalls.c file ). It seems that something is...
thank you for your answer. I read the example at STM32Cube_FW_F4_V1.24.1/Projects/STM32F410xx-Nucleo/Examples/UART/UART_Printf, and i use the code in my main file before i ask the question. By the way , i use c++, not c:#ifdef __GNUC__ /* With GCC, s...