From 3a4254b58fcc1bba54c20d10d497b54c744661df Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 2 Jun 2025 18:07:06 -0400 Subject: [PATCH 1/2] rpi_pico: make it work with picolibc The picolibc changes were merged upstream; switch to using that revision. Signed-off-by: Anas Nashif --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 06653d7a1df47..62c91d168d3fe 100644 --- a/west.yml +++ b/west.yml @@ -231,7 +231,7 @@ manifest: - hal - name: hal_rpi_pico path: modules/hal/rpi_pico - revision: 5a981c7c29e3846646549a1902183684f0147e1d + revision: b547a36a722af7787e5f55b551fd6ce72dcba5a4 groups: - hal - name: hal_silabs From 099fcea30deff8af035984cd6ca6e189285519b7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 4 Jun 2025 12:24:54 -0700 Subject: [PATCH 2/2] modules/hal_rpi_pico: Switch boot_stage2 to picolibc Now that rpi_pico can use picolibc, let's switch to it. Signed-off-by: Keith Packard --- modules/hal_rpi_pico/bootloader/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hal_rpi_pico/bootloader/CMakeLists.txt b/modules/hal_rpi_pico/bootloader/CMakeLists.txt index 7e8d39d8951fb..241ba3c23c305 100644 --- a/modules/hal_rpi_pico/bootloader/CMakeLists.txt +++ b/modules/hal_rpi_pico/bootloader/CMakeLists.txt @@ -45,8 +45,8 @@ target_include_directories(boot_stage2 PUBLIC target_link_options(boot_stage2 PRIVATE "-nostartfiles" - "--specs=nosys.specs" - "LINKER:--script=${boot_stage_dir}/boot_stage2.ld" + "--specs=picolibc.specs" + "-T${boot_stage_dir}/boot_stage2.ld" ) # The second stage bootloader is compiled without kconfig definitions.