AnsweredAssumed Answered

scanf trouble with cubemx

Question asked by achterop.sietse on Nov 21, 2016
Latest reply on Dec 1, 2016 by ForumSTM32.ForumSTM3
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,