App note: Using USB flash drives with USB host capable PICs

Posted on Saturday, January 12th, 2013 in app notes by DP


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

This entry was posted on Saturday, January 12th, 2013 at 1:00 pm and is filed under app notes. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

6 Responses to “App note: Using USB flash drives with USB host capable PICs”

  1. Sleepwalker3 says:

    The video has been “removed by the user”

  2. Markus Gritsch says:

    Some time ago I made a PIC32 access a USB flash drive using the FATFS library. I wanted to have LFS (long filename support) which is explicitly missing from Michrochips solution.

    Here is a link containing more information:

  3. Matt Bennett says:

    Microchip’s stack does support long file names (now). I believe there was some difficulty/confusion about licensing the patents for LFN from Microsoft. I’m not sure of the exact circumstances that made Microchip change its mind.

  4. Sleepwalker3 says:

    Thanks Matt, that’s handy to know. I heard a few good things about fatfs and it sounds as if Markus thought it was OK too, have you done anything or heard anything about how well Microchips LFN stuff works?

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Pekka Akselin: This is ridiculous!? :-) We are back at 256(!) byte EPROMs that needed multiple, a handful, of voltages to run! :-(
  • KH: Let's try a back-of-envelope calc balancing energies. From MCP1700 datasheet, there are graphs for a 200mA load step. Estimate the energy shortfall as 12uJ. Say...
  • Daniel: It's been a week and my comment is still awaiting moderation. Apparently the CIA doesn't want their involvement known?
  • KH: Agree, so okay, I guess he must have learned from somewhere. 100nF and 1000uF is so far apart, that was jarring; it's more magic incantation...
  • Max: I have a suspicion the hefty electrolytic cap might be some sort of cargo cult carry-over from other RF-based projects - for instance, I've seen...