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

WebUSB Download fails when micro:bit is attached to robot #4940

Closed
LabSpace01 opened this issue Feb 10, 2023 · 3 comments
Closed

WebUSB Download fails when micro:bit is attached to robot #4940

LabSpace01 opened this issue Feb 10, 2023 · 3 comments
Labels

Comments

@LabSpace01
Copy link

Describe the bug
When using Micro:bit with SparkFun and Yaboom robots, the MicroBit will pair and download. When the robot is unplugged from the USB and then plugged back multiple times without powering down the robot, the download becomes stuck. We had to unplug the Micro:bit and download the code and then plug the Micro:bit back in and drag the code onto it. This worked.

Steps to reproduce the behavior:

  1. Pair and download code to Micro:bit attached to robot
  2. Unplug MicroBit from usb to run robot
  3. Plug USB back into Micro:bit, download (Repeat steps 2 and 3 twice)
  4. The download becomes stuck

Expected behavior
I expected downloads to continue as they did when I first attached the Micro:Bit.

The workaround: before hooking the USB back to the Micro:Bit, remove power from the robot so the Micro:bit has no power. Plug in USB and the download works properly.

micro:bit version 2.2

You can find this information in the lower right hand corner of the back of micro:bit (the side that says BBC micro:bit).

  • Which version of the micro:bit is this relevant to [ EG V1.3, V1.5, V2.0, or specify it's not hardware related ]

Windows 10, Chrome , multiple laptops and desktops

@microbit-carlos
Copy link
Collaborator

Thanks for the report @LabSpace01. We think this might be an issue in the micro:bit firmware where keeping the board powered via battery pack or edge connector (like a robot) and unplugging and replugging the USB cable can trigger issues with WebUSB.

We are looking into this issue, in the meantime the workaround is to remove all power sources from the micro:bit board and try again, after the micro:bit has been completely powered off it should work correctly.

@Jaqster Jaqster added the webusb label Feb 10, 2023
@abchatra
Copy link
Collaborator

This is firmware issue and tracked by the foundation. @microbit-carlos if you have link to any issue report can you add it here.

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

No branches or pull requests

4 participants