F407 & SDIO & DMA on official core

Post here first, or if you can't find a relevant section!
Post Reply
splitfire
Posts: 3
Joined: Sat Sep 30, 2023 7:07 am

F407 & SDIO & DMA on official core

Post 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.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: F407 & SDIO & DMA on official core

Post by fpiSTM »

You can but you have to implement it yourself.
You have an example in the project section.
splitfire
Posts: 3
Joined: Sat Sep 30, 2023 7:07 am

Re: F407 & SDIO & DMA on official core

Post by splitfire »

Thanks for a suggestion. Can you clarify, that "project" section you are talking about?
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: F407 & SDIO & DMA on official core

Post by fpiSTM »

Sorry. It is code snippet. viewtopic.php?t=110
splitfire
Posts: 3
Joined: Sat Sep 30, 2023 7:07 am

Re: F407 & SDIO & DMA on official core

Post by splitfire »

Thanks.
Post Reply

Return to “General discussion”