cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A9J-DK1 UsbX Device MSC standalone + SDMMC DMA transfer speed

tod
Associate III

Hi all,

I want to use the EMMC as USB storage space.After connecting to the computer and successfully formatting, I found that the file transfer speed is very slow (write speed is 1-2 Mb/s, read speed is 2-6 Mb/s).
After enabling DMA, the speed still hasn't improved.

tod_0-1758867583050.png

And I referred to an example(https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/main/Projects/STM32H735G-DK/Applications/USBX/Ux_Device_MSC) and switched the read/write interface to DMA(BSP_MMC_WriteBlocks_DMA,BSP_MMC_ReadBlocks_DMA), but the enumeration failed. Is this due to differences in the chip series or incorrect configuration?

Aside from this, are there any other methods to improve the speed?

The attached file is my project.

3 REPLIES 3
tod
Associate III

Hi @FBL 

Could you provide some advice? I would really appreciate it!

FBL
ST Employee

Hi @tod 

This Internal DMA you mention is specific to USB controller. However, BSP_MMC_ReadBlocks_DMA/BSP_MMC_WriteBlocks_DMA are specific to SDMMC interface.  You can follow this CKB-STM32-MSC-UX-Standalone-U5 and enable DMA mode here.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


tod
Associate III

Hi @FBL 

Thank you very much for your suggestions!

I will refer to them and provide feedback on the results.