Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pico: SD storage fixes #868

Merged
merged 4 commits into from
Oct 31, 2024
Merged

pico: SD storage fixes #868

merged 4 commits into from
Oct 31, 2024

Conversation

Daft-Freak
Copy link
Collaborator

First patch finally replaces the "storage available" stub with an actual implementation and doesn't claim there's storage if there's no card detected.

Second fixes the USB MSC code to report no medium if no card, which stops the host from polling repeatedly, causing timeouts reading the non-existent card and upsetting everything.

Third optimises block reads a bit, mostly because it ended up slightly too slow on RP2350 causing frequent read corruption. (That part should maybe be using DMA)

(Still need to update SD code to not assume clock is 125 or 250MHz, but it's currently working okay because we overclock everything to 250 still...)

A little faster and more reliable on RP2350
Now it will work with a clock speed other than 125 or 250MHz... like the
default of 150Mhz on an RP2350.

Adds a #define to control the overclock, which is enabled by default for
now to match the old behaviour.
@Daft-Freak Daft-Freak merged commit 788e0d2 into 32blit:master Oct 31, 2024
9 checks passed
@Daft-Freak Daft-Freak deleted the pico-sd-fixes branch October 31, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant