Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mbed driver causes issues with WebUSB driver #487

Open
microbit-carlos opened this issue Aug 28, 2018 · 19 comments
Open

Mbed driver causes issues with WebUSB driver #487

microbit-carlos opened this issue Aug 28, 2018 · 19 comments

Comments

@microbit-carlos
Copy link
Contributor

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?

@cederom
Copy link
Contributor

cederom commented Aug 28, 2018

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

@jaustin
Copy link
Contributor

jaustin commented Aug 28, 2018

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

@cederom
Copy link
Contributor

cederom commented Aug 29, 2018

How about Serial Port Driver?

@microbit-carlos
Copy link
Contributor Author

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.

@jaustin
Copy link
Contributor

jaustin commented Sep 3, 2018

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

@pelikhan
Copy link

pelikhan commented Oct 1, 2018

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.

@abchatra
Copy link

abchatra commented Oct 1, 2018

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

@microbit-carlos
Copy link
Contributor Author

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

@abchatra
Copy link

abchatra commented Oct 1, 2018

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.

@jaustin
Copy link
Contributor

jaustin commented Oct 2, 2018

@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.

@abchatra
Copy link

abchatra commented Oct 2, 2018

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

@carlosperate
Copy link
Contributor

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

@jaustin
Copy link
Contributor

jaustin commented Oct 23, 2018

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

@abchatra
Copy link

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

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 29, 2019

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 .

@JiriAtHoneywell
Copy link

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

@Kishlay-notabot
Copy link

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

@microbit-carlos
Copy link
Contributor Author

microbit-carlos commented Apr 11, 2022

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).

@SekiBetu
Copy link

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

thx, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants