Skip to content

SDIO library(C and C++) - #3139

Open
VitorBoss wants to merge 1 commit into
stm32duino:mainfrom
VitorBoss:sdio_library
Open

VitorBoss wants to merge 1 commit into
stm32duino:mainfrom
VitorBoss:sdio_library

Conversation

@VitorBoss

Copy link
Copy Markdown
Contributor

Summary

This PR implements a common mode to use SDIO/SDMMC on Arduino projects

I have a project that need asyncfatfs and very high speed R/W, instead of writing multiple HAL layers inside the IO driver, I started this 2 years ago(wasn't a priority), now I had some AI help to fix my issues and build documentation for it.

It have a detection pin support and callback when pins level changes. It supports DMA transfers and can enabled(or not) at begin(), use begin(true) to enable DMA

Tested on WeAct SMT32F446RE and Black_F407VE boards. I got 4200KB/sec R/W on F446 at 48MHz on a 64GiB exFAT card.
I can share the driver for further developing, just let me know if is needed.

It have 2 examples, a board validation one and a DMA sector read.

This is a log of the bechmark I built to test it on F446RE:

Write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
4291.13,10218,93,476
4304.06,10138,93,474

Read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
4090.97,2098,95,284
4094.32,695,95,284

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