examples/device/msc_dual_lun/README.md
A USB Mass Storage device that presents two logical units (LUNs), each a small in-RAM FAT12 disk.
README.TXT file (TinyUSB 0 and TinyUSB 1 volumes).TinyUSB, product Mass Storage, revision 1.0.| Interface | Class driver |
|---|---|
| 0 | MSC (mass storage) |
Notable tusb_config.h settings:
#define CFG_TUD_MSC 1
#define CFG_TUD_MSC_EP_BUFSIZE 512
CMake:
mkdir build && cd build
cmake -DBOARD=raspberry_pi_pico ..
cmake --build .
Make:
make BOARD=raspberry_pi_pico all
After plugging in, two removable drives appear on the host, each containing a README.TXT. Open or modify the files to exercise reads and writes. Press the board button to make the second drive report "not ready" (medium not present).