Update the Pico SDK to 2.3.1 - #11426
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
pico-sdk 2.3 (raspberrypi/pico-sdk#2989) makes pio_claim_free_sm_and_add_program_for_gpio_range() return false for a gpio_count of 0 when PICO_PIO_USE_GPIO_BASE is set, so on RP2350B a StateMachine that uses no pins could not be constructed. Use pio_claim_free_sm_and_add_program() when there are no pins. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Collaborator
These should be tested as well as some smoke tests for UART, I2C, etc. |
Collaborator
Author
|
Tested each board on main (SDK 2.2.0) and on this PR. Results matched on every test.
Sleep is RP2040 only, since |
dhalbert
approved these changes
Sep 20, 2026
dhalbert
left a comment
Collaborator
There was a problem hiding this comment.
Thank you for the testing!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the Pico SDK from 2.2.0 to 2.3.1. Also fixes pinless PIO state machines on RP2350B boards (Metro RP2350, Fruit Jam).
Why
Related to #11098. SDK 2.3 intentionally rejects zero pins on RP2350B (raspberrypi/pico-sdk#2989); pinless callers now use
pio_claim_free_sm_and_add_program().Hardware tested
board.LEDworksLinux host. Control on 10.4.0-alpha.1 (SDK 2.2.0): pinless 10/10.
How I tested it
Before the fix, the first construct raised
RuntimeError: All state machines in use.Scope
Doesn't use the new SDK sleep features from #11098. Not tested: USB host, PicoDVI, PSRAM, sleep, WiFi connect.
AI assistance
Made with Claude Code. I reviewed the diff and the hardware results above.
🤖 Generated with Claude Code