# Micro:Bit won't pair WEBUSB

**URL:** https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052
**Category:** micro:bit
**Created:** [October 7, 2024, 10:45pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052 "2024-10-07T22:45:47Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [October 7, 2024, 10:45pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/1 "2024-10-07T22:45:48Z")

</div>

Recently had to install fresh copy of Ubuntu MATE 24.04 LTS on my PC

In makecode editor ( all versions ) whenever i try to Connect decie so i can use 1-click downloads i get the following error…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/f/0f3db0abf37d4293998cec4bd29fd6ed0259ffd4.png)  
I can save hex file & then copy it to the Microbit fine but cannot use 1-click download

Can anyone help me please?

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [October 7, 2024, 10:47pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/2 "2024-10-07T22:47:39Z")

</div>

@dsssssssss9 have you tried using Chrome? I realize that Brave is chromium based, but it’s not part of our test matrix so I don’t think we’ve ever tested it explicitly.

---

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [October 7, 2024, 11:19pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/3 "2024-10-07T23:19:47Z")

</div>

Hi  
Thanks for getting back to me

Currently have brave & chromium installed both give same error

On previous version of Ubuntu both worked flawlessly…

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [October 7, 2024, 11:22pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/4 "2024-10-07T23:22:25Z")

</div>

@dsssssssss9 can you try it on [https://makecode.microbit.org/v6](https://makecode.microbit.org/v6)? We recently updated the micro:bit editor and this is a link to the previous version. We made a lot of improvements to webusb stability but it’s possible that this affected ubuntu somehow.

If it also doesn’t work there, then I think this is likely an ubuntu/chromium bug and not a makecode bug.

---

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [October 10, 2024, 10:04pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/5 "2024-10-10T22:04:32Z")

</div>

HI

Have now tried v3 - v6  
still the same error so i guess your suggestion that it is something to do with Ubuntu etc must be correct

I still have my original HDD with the previous version of linux etc on it. Over the course of the next few days i will plug it back in & boot from it to see if there are any obvious settings/permissions etc that differ between the 2 installs.

seems weird that the Makecode editor sees the Microbit device & lists it when i click PAIR but it is when i highlight the listed DAP device click CONNECT that the process fails?

If i get any further i shall of course report back here

In the meantime if anyone reading this has any further suggestions or has met this problem i would be grateful for any input!

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [October 10, 2024, 10:09pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/6 "2024-10-10T22:09:40Z")

</div>

@dsssssssss9 i just had another thought, you could also try the micro:bit’s online python editor here: [https://python.microbit.org/v/3](https://python.microbit.org/v/3)

iirc they use the same flashing library we do ([https://github.com/ARMmbed/dapjs](https://github.com/ARMmbed/dapjs)) so if that works then it’s definitely a bug on our side.

---

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [October 10, 2024, 10:23pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/7 "2024-10-10T22:23:34Z")

</div>

just tried the link you kindly sent …

results in the following message,

> WebUsb error  
> please reconnect your microbit & try agaiin

---

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [October 16, 2024, 10:11pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/8 "2024-10-16T22:11:06Z")

</div>

@richard

finally found a solution to this problem

Thwe answer was on the Offical MicroBit support site all along i- i just missed it somehow ( many times ! )

> **[How to troubleshoot a webUSB connection](https://support.microbit.org/support/solutions/articles/19000105428-webusb-troubleshooting#Linux)**
>
> The Web USB API facilitates communicating with USB devices from the browser. The API is currently available in Chrome based browsers (Android, Chrome OS, Linux, macOS and Windows) and is supported in the MakeCode Editor and the  Python Editor....

If using linux you may have to create a UDEV rule to enable Chrome based browsers to connect successfully via WEBUSB

I followed this guide & all now appears to be fine

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [October 16, 2024, 10:11pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052/9 "2024-10-16T22:11:41Z")

</div>

@dsssssssss9 awesome! i’ll make sure that this page is linked from our docs as well if it isn’t already.
