cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32H7] How to read and write an SD card in DMA mode?

Cai
Visitor

Hello Community,

I'm working on a storage module using SDcard for my project.

The chip I'm using is STM32H743XIH6.
At present, the SD card has been successfully read and written in the polling (ordinary) mode. However, I have never succeeded in reading and writing the SD card in DMA mode.
Could you please provide a complete illustrated tutorial of the configuration process?
For now, there is no need to introduce fatfs. Just read and write a block in DMA mode.
If possible, please also provide a configured.ioc file and the test code.

 

PS:

STM32CubeMX Version: 6.14.1

2 REPLIES 2
mƎALLEm
ST Employee

Hello @Cai and welcome to the community,

Did you already refer to the example provided by the STM32CubeH7 package under this link: Projects/STM32H743I-EVAL/Applications/FatFs/FatFs_uSD_DMA_Standalone

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Dor_RH
ST Employee

Hello @Cai,

I also suggest exploring the example available at the following link:

STM32CubeH7 SD ReadWrite DMA Example

I hope my answer has helped you. When your question is answered, please select this topic as solution that answered you, it will help others find that answer faster.

Thanks for your contribution.

Dor_RH