Skip to main content
Visitor
September 9, 2026
Question

Mass Storage Device standalone

  • September 9, 2026
  • 1 reply
  • 15 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.

 

 

 

1 reply

dracenaAuthor
Visitor
September 9, 2026

sorry i wrote  STORAGE_Read_FS  but i meant USBD_STORAGE_Read function