Skip to content

Commit 47b4e4c

Browse files
oscardagrachkartben
authored andcommitted
UF2: Enable support for Raspberry Pi RP2350
Add UF2 Family ID for Raspberry Pi 2350 and build UF2 image by default for Pico 2 board Signed-off-by: Ryan Grachek <grachek@gmail.com> Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
1 parent 5c39bb2 commit 47b4e4c

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

Kconfig.zephyr

+1
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ config BUILD_OUTPUT_UF2_FAMILY_ID
794794
default "0x4fb2d5bd" if SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX
795795
default "0x2abc77ec" if SOC_SERIES_LPC55XXX
796796
default "0xe48bff56" if SOC_SERIES_RP2040
797+
default "0xe48bff57" if SOC_SERIES_RP2350
797798
default "0x68ed2b88" if SOC_SERIES_SAMD21
798799
default "0x55114460" if SOC_SERIES_SAMD51
799800
default "0x647824b6" if SOC_SERIES_STM32F0X
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
board_runner_args(uf2 "--board-id=RP2350")
4+
5+
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)

boards/raspberrypi/rpi_pico2/rpi_pico2_rp2350a_m33_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This configuration is orthogonal to whether the Cortex-M33 or Hazard3 cores
22
# are in use, but Zephyr does not support providing a qualifier-agnostic
33
# _defconfig file.
4+
CONFIG_BUILD_OUTPUT_UF2=y
45
CONFIG_CLOCK_CONTROL=y
56
CONFIG_CONSOLE=y
67
CONFIG_GPIO=y

scripts/build/uf2families.json

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@
189189
"short_name": "RP2040",
190190
"description": "Raspberry Pi RP2040"
191191
},
192+
{
193+
"id": "0xe48bff57",
194+
"short_name": "RP2350",
195+
"description": "Raspberry Pi RP2350"
196+
},
192197
{
193198
"id": "0x00ff6919",
194199
"short_name": "STM32L4",

soc/raspberrypi/rpi_pico/rp2350/Kconfig.defconfig

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
if SOC_SERIES_RP2350
77

8+
config BUILD_OUTPUT_UF2_USE_FLASH_BASE
9+
default y if BUILD_OUTPUT_UF2
10+
811
config NUM_IRQS
912
default 52
1013

0 commit comments

Comments
 (0)