Run Zephyr on Micro Bit 2025-07-27
Build worked:
west build -d build/microbit/hello_world -b bbc_microbit samples/hello_world
but flash failed:
west flash -d build/microbit/hello_world
Related: mattoppenheim.com/2018/06/24/using-udev-to-remove-the-need-for-sudo-with-the-bbc-microbit
The build also generates a .hex file by default, and we've tried to flash it manually with:
cp build/microbit/hello_world/zephyr/zephyr.hex /media/ciro/MICROBIT/
but we failed to see it do anything with zephyr/blink_gpio.c, so not sure if the flashing was broken or if the code was broken, or if we didn't find the IO pins correctly.
Note that the LED blinker example does not work on the Raspberry Pi Pico W, see also: Run Zephyr on Raspberry Pi Pico W.
You can speed up the debug loop a little bit by plugging the Pi with BOOTSEL selected, and then running:
west flash --runner uf2
This flashes the image, and immediately turns off BOOTSEL mode and runs the program.
However to run again you need to unplug the USB and re-plug with BOOTSEL again so it is still painful.
Video 1.
Let's run Zephyr RTOS on Raspberry Pi Pico. Ep.1 by Mr. Green's Workshop
. Source.