2025-09-12 7:36 PM - last edited on 2025-09-16 5:54 AM by Andrew Neil
I want to use the EMMC as USB storage space, but I encountered another issue: I am trying to access the EMMC via SDMM1, and after implementing the MSC-related functions (read, write, USBD_STORAGE_GetMediaLastLba, USBD_STORAGE_GetMediaBlocklength) in ux_device_msc.c, the formatting operation on the PC side fails. The error message says: "Please insert a disk into the removable disk."
I have already verified that after initializing SDMM1, the EMMC can be accessed and read/write operations are successful.
What could be the reason for this issue?
The attached file is my project.
ux_device_msc.c:
Solved! Go to Solution.
2025-09-23 11:54 PM
Hi @FBL
Thank you so much for your help! With your assistance, I have successfully formatted it as well.
However, I noticed that the file read/write transfer speed is very slow (1-2 MB/s). Is it possible to improve the read/write speed by adding ThreadX or using DMA?