Hello!
First I'll describe what is going on with my embed device. (My processor is STM32F446RC, Cortex-M4)
I trying to use SDIO and FatFS by Chan. Since I use a timer interrupt, I use DMA for transfer data on SD.
Writing files on SD card is going fine, but f_write() (FatFS library) procedure sometimes staying above 1 second. At this situation I'm losing many information (circular buffer overruns).
f_write() interrupts (delays, you can say so) unpredictable, and I can't understand why it is going on. I tested this function and found that the problem in low level write on SD card. SDIO specification telling about 250 ms maximum delay. What it can be?
Help to beginner, please.
P.S. I don't write code here, because I don't understand where and what it can be. Circuit is fine, I checked it today.
First I'll describe what is going on with my embed device. (My processor is STM32F446RC, Cortex-M4)
I trying to use SDIO and FatFS by Chan. Since I use a timer interrupt, I use DMA for transfer data on SD.
Writing files on SD card is going fine, but f_write() (FatFS library) procedure sometimes staying above 1 second. At this situation I'm losing many information (circular buffer overruns).
f_write() interrupts (delays, you can say so) unpredictable, and I can't understand why it is going on. I tested this function and found that the problem in low level write on SD card. SDIO specification telling about 250 ms maximum delay. What it can be?
Help to beginner, please.
P.S. I don't write code here, because I don't understand where and what it can be. Circuit is fine, I checked it today.
Last edited: