This example demonstrates the use of USB CDC MassStorage Class demo. It will allow a Device to be recognized as a MSC storage device when connected to PC via USB.
Before starting, put switches PSW and ID on your board to ON position like this:
Connect USB-C to USB connector on the right side of the board.
We provide demo code for testing USB CDC MSC functionality. For example to work, proper clock setup is needed. To create a setup with the adequate clock scheme, follow these steps:
- Click on Setups and select New.
- Select GCC ARM or RISC-V compiler and click Next.
- Select Board you are using.
- Select your MCU and click on Advanced.
- Select Config scheme from drop down menu, it will have MCU_NAME_USB name.
- If you dont see MCU_NAME_USB scheme for your MCU then USB module is not supported.
- Click Save, then Next.
- Select desired display, and choose programmer/debugger tool.
- Click Finish.
- Program the MCU.
- TinyUSB MSC storage device will apear on your screen as in image below.