Skip to content

Decode CSD based on CSD_STRUCTURE, not card_type#248

Merged
thejpster merged 1 commit into
rust-embedded-community:developfrom
osdyne:develop
Jun 3, 2026
Merged

Decode CSD based on CSD_STRUCTURE, not card_type#248
thejpster merged 1 commit into
rust-embedded-community:developfrom
osdyne:develop

Conversation

@fdomke

@fdomke fdomke commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

The type of the CSD depends on the CSD_STRUCTURE field, not the physical layer of the card.

Specifically, there are Standard Capacity SD cards that still support CMD8 (SD2);
csd::Csd::new already handles this correctly by looking at CSD_STRUCTURE instead.

@thejpster thejpster left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Thanks!

@thejpster

Copy link
Copy Markdown
Member

Have you tested this on hardware? I’m not in a position to do that myself this week.

@thejpster thejpster added this pull request to the merge queue Jun 3, 2026
Merged via the queue into rust-embedded-community:develop with commit 5232dc4 Jun 3, 2026
7 checks passed
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.

2 participants