Skip to content

Switch bootloaders to picolibc #93470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

keith-packard
Copy link
Contributor

Switch rpi_pico, trusted-firmware-m and cmsis_6 to use picolibc instead of newlib.

Copy link

github-actions bot commented Jul 21, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
cmsis_6 zephyrproject-rtos/CMSIS_6@06d952b (main) zephyrproject-rtos/CMSIS_6#5 zephyrproject-rtos/CMSIS_6#5/files
hal_rpi_pico zephyrproject-rtos/hal_rpi_pico@7b57b24 zephyrproject-rtos/hal_rpi_pico@b547a36 (zephyr) zephyrproject-rtos/[email protected]
psa-arch-tests zephyrproject-rtos/psa-arch-tests@2cadb02 (main) zephyrproject-rtos/psa-arch-tests#14 zephyrproject-rtos/psa-arch-tests#14/files
trusted-firmware-m zephyrproject-rtos/trusted-firmware-m@021e2bb (main) zephyrproject-rtos/trusted-firmware-m#134 zephyrproject-rtos/trusted-firmware-m#134/files

DNM label due to: 3 projects with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@@ -363,7 +363,7 @@ manifest:
groups:
- tee
- name: trusted-firmware-m
revision: 021e2bbd50c215e41710a72e05abce3224f074a7
revision: pull/134/head
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is queued for merging but not yet upstream.

Does this mean that you have submitted the changes upstream? (if so please link to that in the TF-M PR commits)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to the Zephyr repository (shown in the revision above). I suppose I should attempt to figure out how to submit upstream to tf-m.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that looks extremely complicated. Can we get some review here first and see if this change is reasonable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I can also submit the changes upstream for you if needed.
Though I'm not qualified to review the changes in zephyrproject-rtos/trusted-firmware-m#134. I mentioned the PR to upstream maintainers so I hope they can also chime in to tell their opinions. (cc @Anton-TF @adeaarm)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're willing to shepherd the change upstream, that would be helpful (especially given their email-based submission process).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, the trusted-firmware-m changes are actually passing tests with both Zephyr SDK version 0.17 (+ a few patches) and SDK version 0.18 (alpha4 + a few patches). I think they're ready for review.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still find the commit message (This is queued for merging but not yet upstream.) a tad confusing, please update it when you make changes to the PR.

nashif and others added 2 commits July 27, 2025 16:38
The picolibc changes were merged upstream; switch to using that revision.

As the module now includes flash I/O functions, we don't need our own
versions, so remove them.

Signed-off-by: Anas Nashif <[email protected]>
Now that rpi_pico can use picolibc, let's switch to it.

Signed-off-by: Keith Packard <[email protected]>
This is queued for merging but not yet upstream.

Signed-off-by: Keith Packard <[email protected]>
This allows cmsis_6 to compile against picolibc

Signed-off-by: Keith Packard <[email protected]>
psa-arch-tests includes device drivers that failed to mark
registers with 'volatile'. GCC 14.3 cleverly optimized
sequential register accesses using strd/ldrd instructions which
caused the drivers to fail.

Signed-off-by: Keith Packard <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants