This repository was archived by the owner on Dec 26, 2023. It is now read-only.
File tree 4 files changed +17
-0
lines changed
4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ config BUILD_OUTPUT_UF2_FAMILY_ID
462
462
default "0xada52840" if SOC_NRF52840_QIAA
463
463
default "0x4fb2d5bd" if SOC_SERIES_IMX_RT
464
464
default "0x2abc77ec" if SOC_SERIES_LPC55XXX
465
+ default "0xe48bff56" if SOC_SERIES_RP2XXX
465
466
default "0x68ed2b88" if SOC_SERIES_SAMD21
466
467
default "0x55114460" if SOC_SERIES_SAMD51
467
468
default "0x647824b6" if SOC_SERIES_STM32F0X
Original file line number Diff line number Diff line change @@ -83,6 +83,15 @@ command (assuming JLink is used):
83
83
84
84
$ openocd -f interface/jlink.cfg -c 'transport select swd' -f target/rp2040.cfg -c "adapter speed 2000" -c 'targets rp2040.core0' -c 'program path/to/zephyr.elf verify reset exit'
85
85
86
+ Using UF2
87
+ ---------
88
+
89
+ If you don't have an SWD adapter, you can flash the Raspberry Pi Pico with
90
+ a UF2 file. By default, building an app for this board will generate a
91
+ `build/zephyr/zephyr.uf2 ` file. If the Pico is powered on with the `BOOTSEL `
92
+ button pressed, it will appear on the host as a mass storage device. The
93
+ UF2 file should be drag-and-dropped to the device, which will flash the Pico.
94
+
86
95
Debugging
87
96
=========
88
97
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ CONFIG_CONSOLE=y
6
6
CONFIG_UART_CONSOLE=y
7
7
CONFIG_GPIO=y
8
8
CONFIG_USE_DT_CODE_PARTITION=y
9
+ CONFIG_BUILD_OUTPUT_UF2=y
Original file line number Diff line number Diff line change 6
6
config SOC
7
7
default "rp2040"
8
8
depends on SOC_RP2040
9
+
10
+ config BUILD_OUTPUT_UF2_USE_FLASH_BASE
11
+ default y if RP2_REQUIRES_SECOND_STAGE_BOOT
12
+
13
+ config BUILD_OUTPUT_UF2_USE_FLASH_OFFSET
14
+ default y if !RP2_REQUIRES_SECOND_STAGE_BOOT
You can’t perform that action at this time.
0 commit comments