Add DualMCU RP2040 board support#19218
Open
Cesarbautista10 wants to merge 2 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19218 +/- ##
=======================================
Coverage 98.47% 98.47%
=======================================
Files 176 176
Lines 22845 22845
=======================================
Hits 22497 22497
Misses 348 348 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Code size report: |
dbb0090 to
a923c74
Compare
Add support for the UNIT Electronics DualMCU RP2040 + ESP32 board. Configure default UART, I2C, and SPI pins from the board pinout. Add board metadata and include this board in rp2 CI builds. Signed-off-by: GitHub Actions <cesar.bautista@uelectronis.com>
a923c74 to
d5ad660
Compare
Josverl
reviewed
May 14, 2026
| make ${MAKEOPTS} -C mpy-cross | ||
| make ${MAKEOPTS} -C ports/rp2 submodules | ||
| make ${MAKEOPTS} -C ports/rp2 | ||
| make ${MAKEOPTS} -C ports/rp2 BOARD=DUALMCU_RP2040 |
Contributor
There was a problem hiding this comment.
Not all boards need to be built in CI as this would take too much time.
As this board definition does not add code, but only configuration, I don't think this is needed.
Author
There was a problem hiding this comment.
Thanks for the review.
That makes sense. I’ve removed the additional CI build entry for the board.
2e6355d to
f2d0729
Compare
Remove the extra CI build line for the DUALMCU_RP2040 board, as requested in review. Signed-off-by: GitHub Actions <cesar.bautista@uelectronis.com>
f2d0729 to
e3a4cc3
Compare
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
Add MicroPython board support for the UNIT Electronics DualMCU RP2040 + ESP32 development board.
This adds a dedicated RP2040 board definition with default pins for:
It also adds board metadata and enables the board in the RP2 CI build.
Testing
Built locally on the RP2 port:
make -C mpy-crossmake -C ports/rp2 BOARD=DUALMCU_RP2040 submodulesmake -C ports/rp2 BOARD=DUALMCU_RP2040Verified build outputs:
ports/rp2/build-DUALMCU_RP2040/firmware.elfports/rp2/build-DUALMCU_RP2040/firmware.uf2Also tested the onboard LED on physical hardware from the MicroPython REPL on the DualMCU RP2040.
Trade-offs and Alternatives
This adds a small amount of board-specific configuration and one extra RP2 CI build. The trade-off is worthwhile because it provides a dedicated firmware build for the board and helps catch regressions automatically.
An alternative would be to reuse a generic RP2040 board definition, but that would not reflect the board's default pinout or metadata.
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.