To use STM32 USB as a host to interface any Mass Storage Device, for eg- flash drive, or a SD card, we need to use USB as a Mass Storage Class (MSC)..
msc
STM32 USB MSC
we will cover how to use USB Mass Storage Class (MSC) in STM32. There will be two parts to this tutorial. In the first part we will allocate the RAM as msc