Loosing USB connection

07 Apr 2011

Hi Guys,

I have recently experienced that I am loosing the connection to my Mbed when I try to upload a new program. I suspect that it might be related to the size of my program, or the interrupts I am using in my program.

I have tried replacing the whole Mbed, but with no success.

I am getting incresingly frustrated, as I need disconnect the whole Mbed physically and then reconnect the usb and reconnect putty.

Do you have any ideas what might be causing this behavior, as it is causing major delays in my workflow.

Kind regards

Jesper Taxbøl

07 Apr 2011

Hi Jesper,

Can you confirm the operating system (and computer perhaps), and browser you are downloading from. The problem shouldn't be related to the program running on the target.

We've seen a couple of people having a similar problem where re-formating the disk has solved it, probably due to the file system having become corrupt.

If there is anything unique you are doing or specific things you think lead to it, any information you can provide to help us see if it can be reproduced would be great.

Thanks, Simon

07 Apr 2011

Im on a windows7/64 installation.

I am using interrupts heavily in my Mbed application. Every millisecond to update a time counter. Could that affect it?

I have tried formatting the Mbed and that has sometimes solved it.

My current workflow is that I hold down the reset button while deleting the old file. Then resetting the Mbed again so its not running any programs and finally uploading my new binary.

I suspect it to be related to my program binary's size. Its currently at 105Kb

Jesper

07 Apr 2011

The machine is a ASUS G73JH

07 Apr 2011

I have measured my setup to be pulling around 230mA from the USB connection.

I guess the maximum would be 500mA

07 Apr 2011

Do you use the local file system function in your application? My mbed had a behaviour like that too because I made a mistake in this function

07 Apr 2011

I use a SD based filesystem.

10 Apr 2011

Found this quote here: http://mbed.org/forum/mbed/topic/2112/

Igor Martinovski wrote:

Sounds like a pretty cool feature. Just remember though, when you're programming (presumably using a computer) you can't use the usb serial and file system at the same time.

Is this true. If so I think I have found the source of my problem.