cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A9J-DK1 USB Device as mass storage standalone via sdmm1 emmc question

tod
Associate

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.

tod_0-1757730569995.png

ux_device_msc.c:

tod_2-1757730678625.png

tod_4-1757730856986.png

 

tod_3-1757730698364.png

 

 

 

1 REPLY 1
tod
Associate

Hi @FBL 

Please help me analyze.

Thank you very much!