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

sdh: add example for initializing and reading sdcard #11

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

jakezhu9
Copy link
Member

@jakezhu9 jakezhu9 commented Dec 7, 2024

Background

Previously, we used the SPI interface to implement SD card read/write functionality. While this approach was effective, it required additional pin connections(see https://github.com/rustsbi/bouffalo-hal/blob/main/examples/peripherals/sdcard-demo/README.md) and had relatively slow data transfer speeds. To address these issues, we are now focusing on utilizing the SDH peripheral, which offers a more efficient and streamlined way to interact with SD cards.

Progress

We have developed a simple example that demonstrates the initialization of the SDH peripheral and reading data from an SD card. This example has been tested on the target hardware and is functioning correctly.

However, the current implementation is a basic demo intended for validation purposes. It relies on direct peripheral register access. In the future, we plan to improve the code structure, and support more advanced SD card operations.

image

Copy link
Member

@luojia65 luojia65 left a comment

Choose a reason for hiding this comment

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

We can follow on to rearrange the code later. LGTM, excellent!

@luojia65 luojia65 merged commit 118b1a7 into rustsbi:main Dec 7, 2024
14 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