Page 1 of 1

F407 & SDIO & DMA on official core

Posted: Sat Sep 30, 2023 7:10 am
by splitfire
Hello, i'll describe my problem - may be someone has a better option for me.) I have a project (FREERTOS + STM32SD + STM32F407) where first task constantly sample an ADC with period of 250 us. And I have another task, where sdcard routines work. I buffer data to a 16384 B array and try to write to uSD in background. (I mean sdCard task is lower priority than other tasks.) 16384 B array data writes to uSD in about 8.5 ms. If I raise priority for uSD task, everything seems normal, but ADC task get no time. An obvious solution - is to use DMA. Can I use DMA with STM32Duino? Any help appreciated.

Re: F407 & SDIO & DMA on official core

Posted: Sat Sep 30, 2023 11:40 am
by fpiSTM
You can but you have to implement it yourself.
You have an example in the project section.

Re: F407 & SDIO & DMA on official core

Posted: Sat Sep 30, 2023 11:49 am
by splitfire
Thanks for a suggestion. Can you clarify, that "project" section you are talking about?

Re: F407 & SDIO & DMA on official core

Posted: Sat Sep 30, 2023 12:11 pm
by fpiSTM
Sorry. It is code snippet. viewtopic.php?t=110

Re: F407 & SDIO & DMA on official core

Posted: Sat Sep 30, 2023 12:56 pm
by splitfire
Thanks.