{"id":12637,"date":"2024-04-06T03:32:10","date_gmt":"2024-04-06T01:32:10","guid":{"rendered":"https:\/\/deepbluembedded.com\/?p=12637"},"modified":"2024-04-06T11:55:54","modified_gmt":"2024-04-06T09:55:54","slug":"stm32-sdio-dma-example","status":"publish","type":"post","link":"https:\/\/deepbluembedded.com\/stm32-sdio-dma-example\/","title":{"rendered":"STM32 SDIO DMA Example"},"content":{"rendered":"\n

In this tutorial, we’ll learn how to use STM32 SDIO + DMA With FatFS Library For SD Card Interfacing<\/strong>. You’ll learn how to configure the STM32 SDIO With DMA enabled for faster data read\/write operations with less CPU intervention. Without further ado, let’s get right into it!<\/p>\n\n\n

Table of Contents<\/h2>\n
    \n
  1. STM32 SDIO (Secure Digital IO)<\/a>\n\n<\/li>\n
  2. STM32 SDIO DMA Example<\/a>\n\n\n\n<\/li>\n\n
  3. Wrap Up<\/a>\n<\/li><\/ol>\n\n\n
    \n\n\n

    STM32 SDIO (Secure Digital IO)<\/strong><\/h2>\n\n\n

    In this previous tutorial, we discussed the STM32 SDIO interface in detail and created an example project for STM32 SD card interfacing using the SDIO interface with CPU-blocking read\/write operations. Therefore, in this tutorial, we’ll expand more on the topic by adding DMA Rx\/Tx channels for both read\/write operations of the SDIO to accelerate the performance and also save as much CPU time as possible.<\/p>\n\n\n\n

    It’s highly recommended to check out the previous STM32 SDIO Tutorial as a starting point (if you’ve not already completed it).<\/p>\n\n\n

    \n
    \n
    \n\n
    \"STM32<\/a><\/figure>\n\n<\/div><\/div><\/div>\n\n
    \n
    STM32 SDIO Tutorial + Examples<\/a><\/div>\n\n\n

    This tutorial will give you more in-depth information about the STM32 SDIO interface and how to use it with FatFS for SD Card interfacing with a handful of test examples.<\/p>\n\n<\/div><\/div><\/div>\n<\/div>\n<\/div><\/div>\n\n\n


    \n\n\n

    STM32 SDIO DMA Example<\/strong><\/h2>\n\n\n

    In this example project, we’ll test the STM32 SDIO + DMA<\/strong> interface with an SD Card and also test the functionalities provided by the FatFS<\/strong> library and use it to create a text file, write to it, read the file, modify the existing file, and delete the file. We’ll monitor the progress of this test sequence using USB CDC (VCP)<\/a><\/strong> messages printed to the serial monitor on the PC.<\/p>\n\n\n\n

    SD Card Tests Included in This Project:<\/strong><\/p>\n\n\n\n