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 2013

Dear Erik, I tried your suggestion and this line from another example, too: <<serial.printf("I am a virtual serial port\n");>> but I didn't receive it on the terminal side. : - ( Thanks for your comment.

posted by Eduardo Peres 22 Jul 2013
Be the first to answer this question.