mbed Example

A 40 Pin Dip packaged development board enabling you to create internet connected products

mbed Example

Postby Carl-SolderSplash » Wed Oct 30, 2013 11:30 am

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.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed Example

Postby srlevitt » Wed Oct 30, 2013 5:17 pm

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.
srlevitt
 
Posts: 1
Joined: Wed Oct 30, 2013 4:32 pm

Re: mbed Example

Postby Carl-SolderSplash » Wed Oct 30, 2013 10:09 pm

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.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed Example

Postby Carl-SolderSplash » Fri Nov 01, 2013 8:33 am

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.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed Example

Postby Carl-SolderSplash » Mon Nov 04, 2013 11:12 am

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
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed Example

Postby Carl-SolderSplash » Mon Nov 04, 2013 10:52 pm

Here it is :
http://mbed.org/users/SolderSplashLabs/ ... tchenSink/

Let me know how you get on
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed Example

Postby L-Mut » Wed Nov 06, 2013 8:48 pm

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,
L-Mut
 
Posts: 2
Joined: Wed Nov 06, 2013 8:38 pm

Re: mbed Example

Postby L-Mut » Wed Nov 06, 2013 9:01 pm

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,
L-Mut
 
Posts: 2
Joined: Wed Nov 06, 2013 8:38 pm

Re: mbed Example

Postby Carl-SolderSplash » Wed Nov 06, 2013 9:16 pm

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
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm


Return to WiFi DipCortex

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron