File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 6767clean :
6868 $(RM ) -rf $(BUILD )
6969
70+ deploy : all
71+ $(Q ) picotool load -x $(BUILD ) /firmware.elf
72+
7073# First ensure that pico-sdk is initialised, then run CMake with the
7174# UPDATE_SUBMODULES flag to update necessary submodules for this board.
7275#
Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ pass the board name to the build; e.g. for Raspberry Pi Pico W:
4747## Deploying firmware to the device
4848
4949Firmware can be deployed to the device by putting it into bootloader mode
50- (hold down BOOTSEL while powering on or resetting) and then copying
51- ` firmware.uf2 ` to the USB mass storage device that appears.
50+ (hold down BOOTSEL while powering on or resetting) and then either copying
51+ ` firmware.uf2 ` to the USB mass storage device that appears, or using
52+ ` picotool load -x firmware.elf ` . The latter command can be accessed
53+ conveniently via ` make deploy ` .
5254
5355If MicroPython is already installed then the bootloader can be entered by
5456executing ` import machine; machine.bootloader() ` at the REPL.
You can’t perform that action at this time.
0 commit comments