cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476G Evaluation:Enabling DMA for USB_OTG_FS MSC to increase throughput

HARINATH MADDELA
Associate
Posted on April 28, 2017 at 13:30

Hello All,

I'm working on STM32L476 Evaluation board as USB Mass Storage device(Full Speed). I'm planning to improve the throughput for file transfer through USB Mass Storage. So i planned to use DMA for transfer and i enabled 'Enable internal IP DMA' (present in Parameter Settings of USB_OTG_FS Configuration) option in CubeMX. I haven't observed any difference in the source code generated with option enabled to that of the one that is disabled.

I'm not sure if i'm missing anything here. Does the DMA support exist? If so can any one please guide me to use DMA for USB Mass Storage transfers.

Thanks,

Harinath

1 REPLY 1
Posted on April 28, 2017 at 17:03

If CubeMX did everything for everyone you could be replaced by a robot. Review the documentation to understand how the part actually works, and what modes/methods may be possible.

The ceiling for FS MSC is about 700-800 KBps when large blocks are used, writes to flash can be demonstrably slower.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..