pbl flashFlash the firmware to a watch connected through a programmer, using the board’s runner.
pbl flash
Before flashing, check the board’s page for how to
connect the programmer. The sftool runner talks to the watch over
a serial port, given with --tty, e.g. /dev/ttyACM0 or
/dev/tty.usbmodem1102:
pbl flash --tty /dev/ttyACM0
The first time, the system resources have to be written too. The sftool
runner, and the openocd and nrfutil ones on asterix, take --resources;
otherwise, image them over the serial console once the firmware is running,
with pbl image_resources.
When both firmware and resources are written, the watch boots into the main application; pbl console shows its logs.
A watch without a programmer can only be updated by sideloading a pbl bundle.
pbl flash [-h] [-b DIR] [--dry-run] [--resources]
[-r {nrfutil,openocd,sftool}] [--tty TTY]
--resourcesAlso flash the system resources alongside the firmware
-r, --runner {nrfutil,openocd,sftool}Override the board’s runner
--tty TTYSerial port for the sftool runner
Generated from PebbleOS 3a7b71785. This page is maintained in the pebbleos repository: docs/pbl/flash.md.