usb_audio_class_example

Source Path: example\cherryusb\device\ram_disk_dual

Supported Platforms

  • sf32lb52-lcd_n16r8

Overview

This example demonstrates the implementation of a virtual U disk based on cherryusb MSC, including:

  • The PC can see two USB drives named SiFli MSC1 and SiFli MSC2 in 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 see two USB drives in the file manager:

  • One named SiFli MSC1, whose README.TXT contains: cherryusb device msc_ram_dual demo! Lun: 1.

  • One named SiFli MSC2, whose README.TXT contains: cherryusb device msc_ram_dual demo! Lun: 2.

Troubleshooting

Reference Documents

Change Log

Version

Date

Release Notes

0.0.1

09/2025

Initial version