Add Xiao rp2040 plus support #19253
Open
cumin777 wants to merge 1 commit into
Open
Conversation
Signed-off-by: cumin <13809292481@163.com>
2d79f3d to
703559a
Compare
|
Code size report: |
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.
Summary
This PR adds board support for the Seeed Studio XIAO RP2040 Plus to the
rp2port.It introduces a dedicated
SEEED_XIAO_RP2040_PLUSboard definition with:I2C0onGPIO20/GPIO21I2C1onGPIO6/GPIO7The main goal is to make the board usable as a first-class MicroPython target with correct default peripheral mappings for the hardware actually routed on the XIAO RP2040 Plus.
Testing
Tested on a Seeed Studio XIAO RP2040 Plus board.
The following were verified with locally built MicroPython firmware for
SEEED_XIAO_RP2040_PLUS:rp2portI2C0works onGPIO20/GPIO21I2C1works onGPIO6/GPIO7I2C was specifically re-checked after fixing the bus/pin mapping to match RP2040 hardware function constraints.
Trade-offs and Alternatives
This change is board-local and does not alter shared
rp2port behavior for other boards.The only meaningful alternative would have been to keep the previous I2C mapping, but that would leave one of the buses assigned to pins that do not match the intended MicroPython hardware I2C instance usage for this board. The submitted mapping reflects the actual validated working configuration on hardware.
Generative AI
I used generative AI tools when creating this PR, but a human has checked the
code and is responsible for the code and the description above.