Browse Source

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>
pull/83345/head
Ryan Grachek 10 months ago committed by Benjamin Cabé
parent
commit
47b4e4c2fb
  1. 1
      Kconfig.zephyr
  2. 5
      boards/raspberrypi/rpi_pico2/board.cmake
  3. 1
      boards/raspberrypi/rpi_pico2/rpi_pico2_rp2350a_m33_defconfig
  4. 5
      scripts/build/uf2families.json
  5. 3
      soc/raspberrypi/rpi_pico/rp2350/Kconfig.defconfig

1
Kconfig.zephyr

@ -794,6 +794,7 @@ config BUILD_OUTPUT_UF2_FAMILY_ID @@ -794,6 +794,7 @@ config BUILD_OUTPUT_UF2_FAMILY_ID
default "0x4fb2d5bd" if SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX
default "0x2abc77ec" if SOC_SERIES_LPC55XXX
default "0xe48bff56" if SOC_SERIES_RP2040
default "0xe48bff57" if SOC_SERIES_RP2350
default "0x68ed2b88" if SOC_SERIES_SAMD21
default "0x55114460" if SOC_SERIES_SAMD51
default "0x647824b6" if SOC_SERIES_STM32F0X

5
boards/raspberrypi/rpi_pico2/board.cmake

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(uf2 "--board-id=RP2350")
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)

1
boards/raspberrypi/rpi_pico2/rpi_pico2_rp2350a_m33_defconfig

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
# This configuration is orthogonal to whether the Cortex-M33 or Hazard3 cores
# are in use, but Zephyr does not support providing a qualifier-agnostic
# _defconfig file.
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_CLOCK_CONTROL=y
CONFIG_CONSOLE=y
CONFIG_GPIO=y

5
scripts/build/uf2families.json

@ -189,6 +189,11 @@ @@ -189,6 +189,11 @@
"short_name": "RP2040",
"description": "Raspberry Pi RP2040"
},
{
"id": "0xe48bff57",
"short_name": "RP2350",
"description": "Raspberry Pi RP2350"
},
{
"id": "0x00ff6919",
"short_name": "STM32L4",

3
soc/raspberrypi/rpi_pico/rp2350/Kconfig.defconfig

@ -5,6 +5,9 @@ @@ -5,6 +5,9 @@
if SOC_SERIES_RP2350
config BUILD_OUTPUT_UF2_USE_FLASH_BASE
default y if BUILD_OUTPUT_UF2
config NUM_IRQS
default 52

Loading…
Cancel
Save