Skip to main content
Associate II
September 9, 2026
Question

Mass Storage Device standalone

  • September 9, 2026
  • 2 replies
  • 59 views

I’m trying to implement USB mass storage class device standalone(no RTOS) on nucleo board STM32U575ZI-Q, using RAM for memory.

I mostly followed these steps :

, but skipped the  eMMC parts (I’m using RAM). Instead i did  like here: https://embetronicx.com/tutorials/microcontrollers/stm32/stm32-usb-device-msc/ , in ux_device_msc.c I  defined  STORAGE_BLK_NBR,  STORAGE_BLK_SIZ, and then used memcpy() inside functions like STORAGE_Read_FS().

Someone has done seemingly the same thing already(combining these two things) and it worked: https://github.com/ST-TOMAS-Examples-USB/STM32U385RG_Ux_Device_MSC_Standalone .

 

Are there any adittional steps i’ve missed?

Right now, after plugging the USB into my PC, it appears in Device Menager with code 10( device cannot start ).

 

I’ve put a breakpoint on STORAGE_Read_FS() line while debugging, but it never stops there.

 

 

 

2 replies

dracenaAuthor
Associate II
September 9, 2026

sorry i wrote  STORAGE_Read_FS  but i meant USBD_STORAGE_Read function

 

 

ST Technical Moderator
September 22, 2026

Hi ​@dracena 

Could you please attach your project so we can review the configuration and help you more effectively?

Also, for RAM MSC implementation, indeed, the data copy should be done with memcpy() inside USBD_STORAGE_Read() and USBD_STORAGE_Write().

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL