Can I use the USB (pins 31 and 32) for serial and USB stick

23 Oct 2011

Hi If I mount a USB socket on my project can I use it for a USB memory and also for serial communication. As USB hardware is quite bulky I'd rather have just the one socket.

23 Oct 2011

Do you USB CDC Serial interface, as well as a thumb drive ? As far as I am aware there is no MBED CDC SOFTWARE. :(

Or do you mean the local file system, both of which. Can be used together.

Hope this is helpful,

Ceri

23 Oct 2011

Hi Ceri Thanks for your interest. In the same way the mbed has a built in micro USB socket which you can use with teraterm eg. Serial pc(USBTX, USBRX); could I write Serial pc(p31,p32) and use this for serial comms down a usb cable connected to pins 31,32.I'd connect p31,p32 to a USB socket. AND after removing the usb cable could I plug in my USB memory stick Thats what I want to do. So I want to do serial comms through another USB socket but also be able to use that socket to access my USB memory stick. I'm using mbed to digitise a analog waveform and I need to sample at 100Hz for a minute or so and be able to save the waveform. Greg