cancel
Showing results for 
Search instead for 
Did you mean: 

Write to USB stick using FatFS with DMA

smrtkai
Senior
Posted on June 28, 2016 at 16:35

Hi,

I would like to write data to an USB stick using FatFS with a DMA stream. I haven't found anything on this topic yet. I have found some example using an SD card, but I cannot apply this examples to an USB stick. 

Is it possible to write to an USB stick with a DMA stream?
6 REPLIES 6
slimen
Senior
Posted on June 29, 2016 at 12:16

Hi smrtkai,

Could you precise which Firmware are you using?

Regards

smrtkai
Senior
Posted on July 01, 2016 at 10:03

I am using the firmware generated by the latest version of STM32CubeMX.

slimen
Senior
Posted on July 01, 2016 at 10:51

Hi smrtkai,

May be you don't have DMA requests for USB !

You should have a look in your related reference manual to have idea if DMA is supported.

Regards

smrtkai
Senior
Posted on July 05, 2016 at 09:41

I am using an STM32F429I-DISCO board and the manual states that there is an USB OTG HS DMA bus.

''This bus connects the USB OTG HS DMA master interface to the BusMatrix. This bus is used by the USB OTG DMA to load/store data to a memory. The targets of this bus are data memories: internal SRAMs (SRAM1, SRAM2, SRAM3), internal Flash memory, and external memories through the FSMC/FMC.''

But unfortunately, I do not know how to configure it.
mats23
Associate II
Posted on August 09, 2016 at 11:39

Did you figure out how it works?

smrtkai
Senior
Posted on August 23, 2016 at 14:15

No. I think it is not possible to use DMA in combination with FatFS. But it is possible to use DMA with USB.