This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use DMA for fatfs(SPI:SPI0)

Hello!

As the title suggests, I want to know how to use DMA with fatfs.


// <e> SPI0_ENABLED-Enable SPI0 instance
// ================================================ ==========
#ifndef SPI0_ENABLED
#define SPI0_ENABLED 1
#endif
// <q> SPI0_USE_EASY_DMA-Use EasyDMA
 

#ifndef SPI0_USE_EASY_DMA
#define SPI0_USE_EASY_DMA 1
#endif


It is defined like this, but now is fatfs using DMA?

It takes 18ms to write 512 bytes with f_write when writing to the SD card.

Thank you!

Parents Reply Children
No Data
Related