We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Why doesn't scanf work when used in a task? How can I solve the problem? I use STM32 and the standard retarget with uart. I see that only scanf doesn't work, gets() and printf() for example doesn't make me any problem! Thnks
Also, you can try to remove the scanf() function call and replace it with something more simplistic for test purposes.
For example, does _getkey() work from your call and return properly?
"replace it with something more simplistic for test purposes."
Actually, it might be worth doing a 'Search' on this forum for "scanf" - and, in the light of what you find, then re-considering whether you really want to be using it at all...