Micro:Bit won't pair WEBUSB

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…


I can save hex file & then copy it to the Microbit fine but cannot use 1-click download

Can anyone help me please?

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

Hi
Thanks for getting back to me

Currently have brave & chromium installed both give same error

On previous version of Ubuntu both worked flawlessly…

@dsssssssss9 can you try it on 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.

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!

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

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

just tried the link you kindly sent …

results in the following message,

WebUsb error
please reconnect your microbit & try agaiin

@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 ! )

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

1 Like

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