Skip to content

Update RP2040 SDK#3025

Merged
slaff merged 5 commits into
SmingHub:developfrom
mikee47:feature/pico-sdk-update
May 30, 2026
Merged

Update RP2040 SDK#3025
slaff merged 5 commits into
SmingHub:developfrom
mikee47:feature/pico-sdk-update

Conversation

@mikee47
Copy link
Copy Markdown
Contributor

@mikee47 mikee47 commented May 29, 2026

This PR brings the Rp2040 pico-sdk and picotool up to date.

The linker scripts are now distributed and contain a 'fix' which puts some malloc code in RAM. This has been patched to recover the RAM.

The UF2 device families have also been updated from https://github.com/microsoft/uf2/blob/master/utils/uf2families.json, just for completeness.

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented May 29, 2026

PR Summary

  • Subproject Commit Updates
    The versions of the picotool and pico-sdk subprojects were updated to their most recent editions. This typically introduces new features, bug fixes and overall improvements.

  • Old Windows Versions Compatibility
    Alterations were made in the _WIN32_WINNT definitions within lib/whereami/whereami.c to ensure our software can be used with several older versions of the Windows operating system. This extends the reach of our product to a broader range of users.

  • Temporary Fix for GitHub Code Issue
    We have addressed an issue pointed out on GitHub concerning the use of __unused in model/model.h by introducing a temporary workaround. This will help maintain the functionality of the software until a more permanent solution is implemented.

  • Linker Script Flag Addition
    The -T default_locations.ld flag was added to component.mk. This will improve linker behavior, allowing code libraries to be more effectively compiled into an executable file, subsequently leading to better software performance.

  • Updating Include Directories
    To ensure that our software adapts to the updates in the SDK (Software Development Kit) scripts, it is important to change the include directories in component.mk. This modification allows the software to locate and integrate the new script paths.

  • Creating SDK Documentation
    A README.md file was created in the sdk/script_include directory, explaining the changes in linker script management. This enhances the understanding of those changes for future development and troubleshooting.

  • Decreased RAM Usage
    We added the default_text_excludes.incl file which helps to reduce RAM (Random Access Memory) usage. It achieves this by excluding specific libraries during the linking process, thus making our software more efficient with system resources.

  • Adding New Device Configurations
    The uf2families.json file was extended to support several new ESP32 device configurations. This extends our software compatibility to more devices, therefore increasing potential user coverage.

@slaff slaff added this to the 6.3.0 milestone May 30, 2026
@slaff
Copy link
Copy Markdown
Contributor

slaff commented May 30, 2026

@mikee47 do you want to apply this patch to make Codacy happy ?

diff --git a/Sming/Arch/Rp2040/Components/rp2040/sdk/script_include/README.md b/Sming/Arch/Rp2040/Components/rp2040/sdk/script_include/README.md
--- a/Sming/Arch/Rp2040/Components/rp2040/sdk/script_include/README.md
+++ b/Sming/Arch/Rp2040/Components/rp2040/sdk/script_include/README.md
@@ -3,1 +3,1 @@
-Since https://github.com/raspberrypi/pico-sdk/pull/2841 linker scripts have been split up into many `.incl` files.
+Since <https://github.com/raspberrypi/pico-sdk/pull/2841> linker scripts have been split up into many `.incl` files.

@slaff slaff merged commit 388ec5a into SmingHub:develop May 30, 2026
30 of 31 checks passed
@mikee47 mikee47 deleted the feature/pico-sdk-update branch May 30, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants