5 years, 4 months ago.  This question has been closed. Reason: Off Topic

working serial over usb on (Mbed OS) example

Hi gurus,

This must have been asked many times but I've tried quite a few suggestions without success ....

Can anyone provide me a link or package of a working example using serial over USB (on Mbed OS)?

I've tried the following using the Mbed 5.13 (and master branch):

  1. include <USBSerial.h> USBSerial serial;

Then put in serial.printf("blazblah");

but this makes a working example dead (non-responsive) and I have to comment out the above lines to make it working again.

Is there any special configuration you have to turn on etc to get it working? I cannot seem to find the serial interface (COMx) on my PC either.

Can anyone please help?

Thanks a lot, Carl