2016-02-04 05:56 AM
Guys,
How can I print fr to UART ? fr = f_open(&MyFile, ''STM32.TXT'', FA_CREATE_ALWAYS | FA_WRITE); HAL_UART_Transmit(&huart1, fr, 32, 1); // Debug I got this error : ..\Src\main.c(85): error: #167: argument of type ''FRESULT'' is incompatible with parameter of type ''uint8_t * Thanks2016-02-05 12:20 AM
Hi h.rick,
I'd highly recommend you to take a look to the UART project under STM32Cube F4 package for example: STM32Cube_FW_F4_V1.10.0\Projects\STM324x9I_EVAL\Examples\UART\UART_Printf This example shows how to reroute the C library printf function to the UART.-Syrine-