mbed, Windows 7 and USB cables


After various reports of Windows 7 machines hanging while copying files to the mbed Micrcontroller, we did some investigations to recreate the problem, and of course find a fix. Some of the support cases I'd handled suggested that the problem didn't appear on XP, and when it did appear on Window 7, replacing the cable fixed the problem. Could it really come down to the cable not being suitable for Window 7? Fact is often stranger than fiction.

The conclusion is that if you're experiencing this sort of issue, try using another cable. If you want to know why, read on...

USB Cable

The first thing I needed to do was recreate the issue. We'd seen it in the office once or twice before, but not consistently, so the search began for a robust test case. I eventually got my hands on a a Lenovo T410. A 32 bit machine running Windows 7 Enterprise edition, and it showed the problem reliably.

So with a reliably failing machine in hand, I took the plunge and used a different cable. I couldn't believe it - it worked! But the "failing cable" worked on machines with Windows XP, can cable be OS dependent?

I then tried an assortment of cables. Some shorter than the 1.8m cable we ship. Some fatter, suggesting heavier gauge conductors and thicker screening. Some with RF chokes fitted at each end. They all worked beautifully.

The interesting point was when I decided to install Windows XP on the Lenovo T410 machine which reliably failed with the standard cable. In this scenario, the cable still failed with that machine when Windows XP was installed.

After this testing I realised that the correlation with the version of Windows is really a correlation with the age of the machine, and the USB chip set it contains. Most Machines with XP were older, and worked fine. Most machines with Windows 7 were newer, had USB 3.0 support, so therefore a different chip set which is more reliant on the quality of the cable. This hypothesis fits with the fact that the newer machine still fails when running Windows XP.

The conclusion of all this is that USB chip sets in newer machines can be a little more dependent on the quality of the cable for correct operation. If you have a newer machine (if it was shipped with Windows 7 seems to be a good indicator!) and you have problems with the USB Flash drive of mbed, try using a different cable. Maybe a shorter or fatter one that came with a Digital Camera or MP3 player. In the mean time, we have qualified new cables which have started to ship with the mbed Microcontrollers.

If you're having any USB related issues, try using a different cable.

8 comments on mbed, Windows 7 and USB cables:

19 Jul 2012

Did you mark the new cables in any way?

How about a source for those of us with older cables?

Thanks, Gary

19 Jul 2012

Hi Gary,

The new cable is easily identifiable as it has silvered plugs.

/media/uploads/chris/newcable.jpg

Everybody who has reported a problem so far has solved the issue by using an alternate cable they happen to have already. The benefit of using standard cables is that these days most people (even non-techies) have a box of spare cables they don't use/need!

It is a corner case issue that was hard to reproduce, and there have only been a handful of cases, so I don't think we need to do a major recall program. Anyone who sees the problem and doesn't have an alternate cable should contact support@mbed.org

20 Jul 2012

Wow. OK cool I thought my mbed was messed.

19 Aug 2012

I have three mbed's all with the old cables and non work on Win7. How can I get one of these USB cables replaced, who do I need to email about this? Best Regards Dave.

22 Aug 2012

support@mbed.org for all enquiries!

Thanks, Chris

22 Aug 2012

it falls on mbed to replace the cables, i spent 18 pounds on a high quality cable which worked instantly so i think mbed should be responcible for the £18 but because i like your hardware so much i'm going to ignore it! and i hope you pay attention to these types of hardware problems in the future.

12 Dec 2012

Buying a new computer works too. I spent *days* on my older ThinkPads trying to get the mbed to work. (Documented here). Now I have a new ThinkPad X230 and the mbed works fine with any cable.

25 Jan 2014

I still have this problem Even just bought mbed 1 week ago with shipped cable Even I tried 10 different cables some with camera and expensive one Let me know what cable model so I can order ?

Please log in to start a discussion or ask a question.