TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136733 times)
  2. FAT32 Library (69950 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46265 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41170 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25375 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

USB CDC MSC Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-04

Package Version: 2.0.0.7

mikroSDK Library: 2.0.0.0

Category: USB

Downloaded: 47 times

Not followed.

License: MIT license  

The application demonstrates USB CDC functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "USB CDC MSC Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "USB CDC MSC Demo" changes.

Do you want to report abuse regarding "USB CDC MSC Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

USB CDC MSC DEMO

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.

Hardware Support

Before starting, put switches PSW and ID on your board to ON position like this:

image

Connect USB-C to USB connector on the right side of the board.

Software Support

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:

  1. Click on Setups and select New.
  2. Select GCC ARM or RISC-V compiler and click Next.
  3. Select Board you are using.
  4. Select your MCU and click on Advanced.
  5. Select Config scheme from drop down menu, it will have MCU_NAME_USB name.
  6. If you dont see MCU_NAME_USB scheme for your MCU then USB module is not supported.
  7. Click Save, then Next.
  8. Select desired display, and choose programmer/debugger tool.
  9. Click Finish.
  10. Program the MCU.
  11. TinyUSB MSC storage device will apear on your screen as in image below.

example


ALSO FROM THIS AUTHOR

Light 3 click

0

Light 3 Click is a compact add-on board for precise ambient light measurement in automotive applications. This board features the OPT4003-Q1, an automotive-grade digital ambient light sensor from Texas Instruments. This digital ambient light sensor excels in detecting both visible and near-infrared light with high accuracy, thanks to its dual-channel functionality and filters that mimic the human eye's response while efficiently segregating NIR light.

[Learn More]

Clock Gen 6 click

0

Clock Gen 6 Click is a compact add-on board representing a digital oscillator solution. This board features the MIC1557, an IttyBitty CMOS RC oscillator designed to provide rail-to-rail pulses for precise time delay or frequency generation from Microchip Technology. The MIC1557 has a single threshold and trigger connection, internally connected, for astable (oscillator) operation only. It also has an enable/reset control signal routed to the RST pin of the mikroBUS™ socket, which controls the bias supply to the oscillator’s internal circuitry and optimizes power consumption used for oscillator power ON/OFF purposes. In addition, it provides the ability to select the desired frequency programmed via a digital potentiometer, the MAX5401.

[Learn More]

IR 2 click

0

IR 2 Click is a compact add-on board representing a compact and easy solution for adding infrared (IR) remote control to your design. This board features the TSMP58138, a miniaturized sensor for receiving the modulated signal of QEE113 IR emitting diode from Vishay Semiconductors. This IR sensor module consists of a photodetector, pre-amplifier, and automatic gain control to surpass ambient noise with signals transmitted to it in the near-infrared range with a wavelength of 940nm. It also communicates with the target MCU via selectable GPIO lines.

[Learn More]