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:
To list dfu devices:
Download firmware
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
~ https://github.com/micropython/micropython/wiki/Pyboard-Firmware-Update#preparation
Flash firmware
To flash firmware using dfu-util:
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:
ref: ~ https://docs.micropython.org/en/latest/pyboard/tutorial/reset.html- Connect the pyboard to USB so it powers up.
- Hold down the USR switch.
- While still holding down USR, press and release the RST switch.
- The LEDs will then cycle green to orange to green+orange and back again.
- Keep holding down USR until both the green and orange LEDs are lit, and then let go of the USR switch.
- The green and orange LEDs should flash quickly 4 times.
- The red LED will turn on (so red, green and orange are now on).
- The pyboard is now resetting the filesystem (this takes a few seconds).
- The LEDs all turn off.
- You now have a reset filesystem, and are in safe mode.
- Press and release the RST switch to boot normally.
Comments
Post a Comment