Skip to main content
Associate II
September 26, 2025
Question

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

  • September 26, 2025
  • 2 replies
  • 400 views

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.

2 replies

todAuthor
Associate II
September 27, 2025

Hi @FBL 

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

Technical Moderator
September 29, 2025

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.Best regards,FBL
todAuthor
Associate II
October 2, 2025

Hi @FBL 

Thank you very much for your suggestions!

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