Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 4 months ago.
serial.printf("Test "); not working on Mbed Virtual Serial Port
On the Mbed Virtual Serial Port, FRDM-KL25Z
serial.scanf("%s", buf); works fine but
serial.printf("recv: %s", buf); does nothing.
Tried 6 different terminal programs and got the same.
And then, I tried on another pc with the w7-64. Same issue.
Some tip?
Thanks, Edu.
Try adding \n at the end of your printf, so:
serial.printf("recv: %s\n", buf);
Could be that the standard buffering settings are being irritating.
posted by Erik - 22 Jul 2013Dear Erik, I tried your suggestion and this line from another example, too:
posted by Eduardo Peres 22 Jul 2013<<serial.printf("I am a virtual serial port\n");>>
but I didn't receive it on the terminal side. : - ( Thanks for your comment.