Overview of USB Device Mass Storage (MSC) Standalone Example
masterThis application demonstrates how to use the STM32F0xx USB Device peripheral to implement a Mass Storage Class (MSC) device. The STM32 MCU acts as a removable drive, communicating with a PC Host using Bulk Only Transfer (BOT) and SCSI transparent commands. In this specific implementation, a microSD card is used as the storage media.
When the application is running, plugging the USB cable into a PC host will cause the device to be automatically detected as a new removable drive, allowing standard read, write, and format operations.