DMA performance gain on SDIO
I am using STM32CUBE ide and my project has SD card access via SDIO peripheral.
I am using FatFS middleware. To use FreeRTOS I enabled DMA and system works fine.
After enabling the DMA I wanted to see how much read/write performance the system gained.
I measured disk access time with oscilloscope by set-reset a gpio pin in SD_read and SD_write functions. To my surprise system that use DMA for SDIO peripheral was slightly slower.
Following table is the access times with and without DMA:
| Read | Write | |
| with DMA | 1.31ms | 2.062ms |
| without DMA | 1.23ms | 1.965ms |
Am I doing something wrong or in this case the purpose of DMA is to help FreeRTOS to be able to run multiple threads?
