add DEFAULT_SD_* for Metro RP2040 and Feather RP2040 Adalogger#10968
Open
mikeysklar wants to merge 1 commit intoadafruit:mainfrom
Open
add DEFAULT_SD_* for Metro RP2040 and Feather RP2040 Adalogger#10968mikeysklar wants to merge 1 commit intoadafruit:mainfrom
mikeysklar wants to merge 1 commit intoadafruit:mainfrom
Conversation
…040 Adalogger Both boards have onboard microSD slots but were missing the DEFAULT_SD_* pin defines that enable CircuitPython's native SD automount. Without these, SD-over-USB-MSC only worked via user boot.py code and hit the heap-mount race in get_vfs(). Pin wiring verified on hardware against the board schematics; CD pin polarity (DEFAULT_SD_CARD_INSERTED=true) confirmed by runtime test. Companion to adafruit#10963 (automount at filesystem init) and #NNNN (per-LUN PREVENT_ALLOW response). Fixes the last mile for adafruit#10965.
This was referenced Apr 22, 2026
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.
Why
Both boards have onboard microSD slots but their
mpconfigboard.hfiles don't declareDEFAULT_SD_*pin defines. Without these, CircuitPython's native SD automount can't fire and users fall back to mounting SD fromboot.py— which hits the VM-heap race inget_vfs()and doesn't expose the card reliably over USB MSC on macOS.Adding the pin defines lets the native automount path take over (SD is set up before USB enumerates, off-heap, stable across resets) and makes SD-over-MSC "just work" on these boards once #10963 and #10967 land.
What this changes
Both use
DEFAULT_SD_CARD_INSERTED=true(CD pin reads HIGH when card present — verified on hardware).Tested on
Both boards verified end-to-end on macOS 26.x (Apple Silicon) and Linux (Ubuntu 24.04): SD mounts as the second USB drive, card insert/remove cycle works, contents readable.
Related