Skip to main content
tomabcd9
Associate II
November 7, 2009
Question

Anyone using the STM32C to read a USB flash Drive?

  • November 7, 2009
  • 4 replies
  • 1070 views
Posted on November 07, 2009 at 10:58

Anyone using the STM32C to read a USB flash Drive?

    This topic has been closed for replies.

    4 replies

    tomabcd9
    tomabcd9Author
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:28

    Looking at the Docs it appears the STM32C can but used as USB host

    so is there example software so the STM32C can connect to a USB flash

    drive?

    If so how much code/ram space does it take? What file systems

    does it support? Are there any licensing issues?

    If this is all documented somewhere please just point me to it.

    Thanks

    Tom

    sheldon
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:28

    I'm looking to do something similar. Chan's FAT (http://elm-chan.org/fsw/ff/00index_e.html) can be used for the file system, but then I need to implement the disk I/O functions:

    I wasn't impressed with the USB-OTG driver being mostly binary form so I couldn't get more help with it. However, I did see that Keil has a stm32_usbmem.zip file that seems to demo USB host for the STM32 (if you use Keil)

    Has anyone else tried to do something similar with any success?

    tomas23
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:28

    Hi Tom,

    there are few vendors that provide USB host stack for STM32, we have real experience with Micrium (works), but is not cheap.

    Nothing free, so far.

    Palitsky.Gennady
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:28

    I couldn't locate the file stm32_usbmem anywhere in Keil directories.

    Could you please point me at the location.

    Did you have any success with implementing usb drive interface ?

    thanks a lot,

    Gennady