Flash Pyboard MicroPython firmware using dft-util on Raspberry Pi OS

This video show steps to flash/update MicroPython firmware to Pyboard PYBv1.1 using dft-util on Raspberry Pi OS 32-bit buster.


dfu-util (Device Firmware Upgrade Utilities) is used to flash firmware to Pyboard.

To install dfu-util using apt:
$ sudo apt install dfu-util

To list dfu devices:
$ sudo dfu-util -l

Download firmware

To download MicroPython firmware, visit: https://micropython.org/download/

To download .dfu file for Pyboard v1.1.

Enter bootloader mode

If your Pyboard is flashed MicroPython, you can force it into bootloader mode in REPL
>>> import machine
>>> machine.bootloader()
or "First, disconnect everything from your pyboard. Then connect the DFU pin with the 3.3V pin (they're right next to each other) to put the board into DFU (Device Firmware Update) mode. Now connect the pyboard to your computer via USB."
https://github.com/micropython/micropython/wiki/Pyboard-Firmware-Update#preparation

Flash firmware

To flash firmware using dfu-util:
$ sudo dfu-util --alt 0 -D <.dfu>
more...

Optionally, you can factory reset the filesystem:
  1. Connect the pyboard to USB so it powers up.
  2. Hold down the USR switch.
  3. While still holding down USR, press and release the RST switch.
  4. The LEDs will then cycle green to orange to green+orange and back again.
  5. Keep holding down USR until both the green and orange LEDs are lit, and then let go of the USR switch.
  6. The green and orange LEDs should flash quickly 4 times.
  7. The red LED will turn on (so red, green and orange are now on).
  8. The pyboard is now resetting the filesystem (this takes a few seconds).
  9. The LEDs all turn off.
  10. You now have a reset filesystem, and are in safe mode.
  11. Press and release the RST switch to boot normally.
ref: ~ https://docs.micropython.org/en/latest/pyboard/tutorial/reset.html













Comments

Popular posts from this blog

MicroPython/ESP32-C3 + 1.8" 128x160 TFT ST7735 SPI, using boochow/MicroPython-ST7735 library.

CameraWebServe: ESP32-S3 (arduino-esp32) + OV5640 camera module