Skip to main content
dgleeson2
Associate II
July 11, 2012
Question

USB Host Firmware and STM32 - Pay or Free

  • July 11, 2012
  • 4 replies
  • 1143 views
Posted on July 11, 2012 at 15:39

Hello ALL

We have already completed a project with the STM32F It took some time to get up to speed but eventually we did, and completed a complex project.

Now we have a project which could work with a similar sized STM32 but with the exception that we need to be able to plug a USB memory stick into the device and have the device save readings onto the USB stick.

So now we need an STM32 with a USB host (Im assuming USB OTG wont do as Ive never seen a USB memory stick with an OTG connector)

I can see the STM32F107 for the hardware, but it looks like we need to pay for a USB host stack. Is this correct or is there a freeware stack that works?

If we have to pay what sort of money are we talking about?

Many thanks for any assistance.

Denis

Many thanks for any help in advance

Denis

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    July 12, 2012
    Posted on July 12, 2012 at 21:35

    The current release of the USB library has examples hosting USB Mass Storage Controller devices and reading with FsFat.

    http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32_f105-07_f2_f4_usb-host-device_lib.zip

    Presumably you'd just stick whatever USB connector you wanted on the board, it's just a bidirectional pair with power. Mash up a couple of cables.

    http://www.ebay.com/itm/STM32F407ZGT6-STM32F407-STM32-ARM-Cortex-M4-Development-Board-15-Modules-Kit-/251104533388?pt=LH_DefaultDomain_0&hash=item3a76ff1b8c

    Commercially USB stacks perhaps $1500-7500, might be helpful if you need support for hubs or exotic devices and don't want to do everything from scratch, or want development assistance/support.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    alok472
    Associate
    July 13, 2012
    Posted on July 13, 2012 at 07:29

    UM1021..

    STM32F105xx, STM32F107xx, STM32F2xx and STM32F4xx USB

    On-The-Go host and device library

    http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD00289278.pdf

    Also, some App Notes for IAP using USB Disk AN3354

    http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/DM00023593.pdf

    Tesla DeLorean
    Guru
    July 14, 2012
    Posted on July 14, 2012 at 15:54

    You might also look at this board from Olimex (STM32-H407), which would be ideal for experimenting with some design/development ideas related to USB, and mass-storage (Micro SD card).

    https://www.olimex.com/dev/stm32-h407.html

    I'd certainly recommend seriously looking at the F2/F4 parts over the F1's as ST has resolved several of the short comings, and pin escape issues.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    dgleeson2
    dgleeson2Author
    Associate II
    July 14, 2012
    Posted on July 14, 2012 at 18:22

    Hi Guys

    Very helpful input.

    My main concern and confusion was the USB OTG specification on the software stack.

    Looks like for my application I can use this stack with a full size host connector on the board.

    processor pricing is likely to be an issue so I may have to go with the 107 part. Ill have to check out relative pricing.

    Thanks Again

    Denis