Question
scanf trouble with cubemx
Posted on November 21, 2016 at 11:25
Hello,
trying to make scanf work on stm32f4-discovery with cubemx software and GCC. I created the syscalls.c function _read using the HAL_UART_Receive_IT() function. This works fine when used with the (unistd) read function, e.g. read(0, Buf, 4); So I assume the _read function is working. But when using scanf(''%d'', &i), or fscanf(0,''%d'',&i), this function never returns. I can see that the _read function is NOT called at all. I don't see how scanf can work without calling _read at some point. What am I doing wrong? Thanks in advance, Sietse #stm32f4-discovery-scanf-syscalls