Here’s an app note from Microchip describing how to use USB flash devices with microcontrollers that have USB host capability. The article also provides instructions on how to use the USB OTG Configuration tool.
This document describes the USB Data Logger, Mass Storage demo application. It gives an overview of the application’s firmware, how it operates, and describes how it was configured using the USB Configuration tool. This includes support for FAT16 and FAT32