usb_audio_class_example
Source Path: example\cherryusb\device\ram_disk
Supported Platforms
sf32lb52-lcd_n16r8
Overview
This example demonstrates the virtualization of a USB flash drive using RAM based on cherryusb MSC, including:
The PC can view a USB flash drive named SiFli MSC DEMO through the file manager.
How to Use This Example
Hardware Requirements
Before running this example, prepare:
A development board supported by this example (Supported Platforms).
A USB-A to Type-C data cable with data transfer capability.
A host device that supports USB.
Compilation and Programming
Switch to the example project directory and run the scons command to compile:
scons –board=sf32lb52-lcd_n16r8 -j32
Switch to the example project/build_xx directory, run uart_download.bat, and follow the prompts to select the port for downloading:
./uart_download.bat
Uart Download
please input the serial port num:5
For detailed steps on compilation and downloading, please refer to the relevant introduction in Quick Start.
Expected Results
After the example starts: The host connects to the board via the data cable, and the PC can view a USB flash drive named SiFli MSC in the file manager. There is a README.TXT file in the drive with the content “cherryusb device msc_ram demo!”.
Troubleshooting
Reference Documents
Change Log
Version |
Date |
Release Notes |
|---|---|---|
0.0.1 |
09/2025 |
Initial version |