Excuse me; I forgot to attach a snapshot.
De: Ortega Sanz Pedro
Enviado el: miércoles, 26 de febrero de 2014 17:17
Para: 'jive-891534970-4qmg-2-87zu@freescale.hosted.jivesoftware.com'
Asunto: RE: - Hi, I am trying to use Scanf() in a Processor Expert project, and the function return nothing. Does not wait for characters and exit immediately. Any idea?
Hi Petr.
Thanks for your early response.
Yes I am using KINETIS (K60) and CodeWarrior, In the project there is ConsoleIO and it is properly configured (printf(), work perfectly).
Attached you can find a snapshot of screen.
The issue is that when the scanf(), get(), or gets() are executed the MCU does not wait for string+ CR/LF or any character; the program continue without delay.
I try to use fflush(), in order to clear the input buffer but there is no difference.
Best regards
De: Petr Hradsky
Enviado el: miércoles, 26 de febrero de 2014 15:43
Para: Ortega Sanz Pedro
Asunto: Re: - Hi, I am trying to use Scanf() in a Processor Expert project, and the function return nothing. Does not wait for characters and exit immediately. Any idea?
<https://community.freescale.com/>
Hi, I am trying to use Scanf() in a Processor Expert project, and the function return nothing. Does not wait for characters and exit immediately. Any idea?
reply from Petr Hradsky<https://community.freescale.com/people/Petr_H?et=watches.email.thread> in Processor Expert Software - View the full discussion<https://community.freescale.com/message/383610?et=watches.email.thread#383610>