DAPLink icon indicating copy to clipboard operation
DAPLink copied to clipboard

Mbed driver causes issues with WebUSB driver

Open microbit-carlos opened this issue 7 years ago • 19 comments
trafficstars

When a computer running Windows 10 (and possibly Windows 8) already has the Mbed driver installed from https://os.mbed.com/handbook/DAPLink (http://os.mbed.com/media/downloads/drivers/mbedWinSerial_16466.exe), then Windows will fail to install the WebUSB driver.

image

image

image

We can uninstall the mbed driver by finding all thee DAPLink entries in the Device Manager, "right-click/Uninstall device" and mark the "Delete the driver software for this device". At that point unplugging the device and replugging it will install the all the default drivers as expected.

Older versions of DAPLink needed this driver for serial to work, and a significant number of the deployed micro:bits are likely to still have v0234, we expect a portion of the existing micro:bit user base to have the Mbed drivers installed on their computers and perhaps not even realise it.

Is there anything that could be done in the the Mbed drivers or DAPLink that could avoid or fix this incompatibility?

microbit-carlos avatar Aug 28 '18 15:08 microbit-carlos

Is new bundle of drivers with WebUSB included that would contain all previous necessary drivers and avoid existing conflicts?

cederom avatar Aug 28 '18 16:08 cederom

For most people versions since 0241 don't require drivers at all, so we'd prefer to avoid any drivers, rather than a fixed-up bundle

jaustin avatar Aug 28 '18 19:08 jaustin

How about Serial Port Driver?

cederom avatar Aug 29 '18 12:08 cederom

With 0241 the serial driver gets automatically installed in Windows 8/10, so there is no need to use the .exe installer. It's possible older versions of Windows (like Win7) still require the manual installation, but WebUSB is not supported in those, so it wouldn't be a problem.

microbit-carlos avatar Aug 29 '18 15:08 microbit-carlos

(this comment was erroneuously placed when it should have been on 486 )

jaustin avatar Sep 03 '18 17:09 jaustin

We have customers that are also reporting this issue. It makes the entire WebUSB feature much harder to use for users that have mbed installed.

pelikhan avatar Oct 01 '18 18:10 pelikhan

How do I uninstall the embed driver? Is there any step by step instructions? What is the other workaround here?

abchatra avatar Oct 01 '18 18:10 abchatra

We have this micro:bit support article with instructions on how to uninstall it: https://support.microbit.org/en/support/solutions/articles/19000089574-beta-testing-mbed-driver-doesn-t-work-with-windows

microbit-carlos avatar Oct 01 '18 18:10 microbit-carlos

I have no embed Composite Device entry in my device manager. I am getting access denied error when I select the microbit from the chrome authorization dialog.

abchatra avatar Oct 01 '18 22:10 abchatra

@abchatra do you know for sure that you've installed the mbed driver on that machine? And if so, can you share what you do have in device manager? I can't think why your setup would be different to our test one where Carlos made that help doc.

jaustin avatar Oct 02 '18 11:10 jaustin

My issue is common in both python and makecode. When I can select a device but it gives me access denied error. image

abchatra avatar Oct 02 '18 16:10 abchatra

Device driver looks fine in the screenshot, might be a different issue more related to DAPJs than DAPLink.

carlosperate avatar Oct 02 '18 16:10 carlosperate

@abchatra did you get any more information on this from your system? Or is it still an issue for you?

jaustin avatar Oct 23 '18 13:10 jaustin

I haven't got cycles to get into this. I still see "Access denied". I will spend some cycles next week

abchatra avatar Oct 23 '18 14:10 abchatra

We have this micro:bit support article with instructions on how to uninstall it: https://support.microbit.org/en/support/solutions/articles/19000089574-beta-testing-mbed-driver-doesn-t-work-with-windows

Had this problem as well. This is unfortunate, we should state do not use the driver for win10 in any case .

0xc0170 avatar Nov 29 '19 10:11 0xc0170

The right driver is winusb.inf, winusb.sys.

Search your Windows directory for the file winusb.inf and then install it manually.

Right click on the WebUSB: CMSIS-DAP in the Device Manager >> Update Driver >> Browse my Computer... >> Let Me Pick ... >> Universal Serial Bus Device >>Have a Disk >> Path to the winusb.inf. >> Select WinUSB Device

image

JiriAtHoneywell avatar Jun 22 '20 14:06 JiriAtHoneywell

My issue is common in both python and makecode. When I can select a device but it gives me access denied error. image

same here

Kishlay-notabot avatar Apr 10 '22 13:04 Kishlay-notabot

The access denied error is often caused by having another MakeCode or Python editor window or tab in the background that is already WebUSB connected (MakeCode can connect automatically, so even if it's "just opened" it could be connected).

microbit-carlos avatar Apr 11 '22 06:04 microbit-carlos