Page 1 of 1

mbed Example

PostPosted: Wed Oct 30, 2013 11:30 am
by Carl-SolderSplash
For mbed users you can find an example here :

http://mbed.org/users/SolderSplashLabs/ ... tchenSink/

To view the printf statements you will need a USB to Serial adapter with a baud rate of 115200. Using a VT100 Terminal like putty.

More examples coming soon.

Re: mbed Example

PostPosted: Wed Oct 30, 2013 5:17 pm
by srlevitt
How can I modify the kitchen sink mbed project to use the USB as the serial port instead of pins 19 & 20? I tried altering the code to read:

USBSerialKeyboard pc;
//Serial pc(p19, p20);

but after program & reboot, the device just doesn't enumerate at all in USB.

Re: mbed Example

PostPosted: Wed Oct 30, 2013 10:09 pm
by Carl-SolderSplash
USB CDC Support in mbed is my next challenge, currently this works with the LPCXpresso example only.

Until then you will need a USB to Serial adapter attached to the pins configured by the Serial initaliser Serial pc.

Another standard DipCortex can be used as a USB to serial adapter with this firmware : http://www.soldersplash.co.uk/docs/DipC ... SB-CDC.zip

It's high on my priority list to implement USB on mbed, there are a lot of USB projects on mbed but not one that I can see which implements the USB ROM.

Re: mbed Example

PostPosted: Fri Nov 01, 2013 8:33 am
by Carl-SolderSplash
I have USB CDC working now :)

Here is an example project : http://mbed.org/users/SolderSplashLabs/ ... x-USB-CDC/
this creates a USB to UART bridge with the DipCortex.

Next job is to modify the Kitchen Sink Example to use it.

This library probably doesn't use the ROM USBstack so there maybe some flash savings to be had later on by modifying it.

Re: mbed Example

PostPosted: Mon Nov 04, 2013 11:12 am
by Carl-SolderSplash
Now have USB CDC working with CC3000 library on mbed, will publish tonight..

It's at home streaming ADC data to Xively at the moment : https://xively.com/feeds/1197891669

Re: mbed Example

PostPosted: Mon Nov 04, 2013 10:52 pm
by Carl-SolderSplash
Here it is :
http://mbed.org/users/SolderSplashLabs/ ... tchenSink/

Let me know how you get on

Re: mbed Example

PostPosted: Wed Nov 06, 2013 8:48 pm
by L-Mut
Hi Carl,

I just received my WiFi Dip Cortex, I really enjoy it.

However, I am trying to use the USB CDC KitchenSink example, but I can't manage to install the Windows driver for the CDC Device.

Image

I tried to install the configuration file found here : http://mbed.org/handbook/USBSerial but it failed, Windows is not accepting this inf file for the driver.

Also, I tried to install the mbed usb serial driver found here : http://mbed.org/handbook/Windows-serial-configuration but it tells me "No mbed Microcontrollers were found". But this driver works perfectly when I use my mbed LPC2368.

Do you have any idea ?

Thanks in advance for your help :)

Regards,

Re: mbed Example

PostPosted: Wed Nov 06, 2013 9:01 pm
by L-Mut
Hi,

Ok, I just found out that we had to modify the inf file in order to match the VID & PID....

It works now.

Maybe you should provide it on the mbed page of the Dip Cortex !

http://maxime.muller.free.fr/serial_WiFi_DipCortex.inf

Sorry for the inconvenience.

Have a nice day :)

Regards,

Re: mbed Example

PostPosted: Wed Nov 06, 2013 9:16 pm
by Carl-SolderSplash
Hi,

Glad you got there! I added an Mbed notbook page the other day with a link to the driver, which can be downloaded here : http://www.soldersplash.co.uk/docs/DipC ... SB-CDC.zip

Good work modifying the mbed one works as well! The VID and PID I am using is one provided by NXP for LPC's using USB CDC I use it for the LPCXpresso example so thought I should on the mbed one as well.

Just so you know the mbed USB CDC is slower than the LPCXpresso version, which is something I will look at.

Shall add a link to the driver to the mbed project page as well to help others