cancel
Showing results for 
Search instead for 
Did you mean: 

USB host library getting started

philipp
Associate II
Posted on May 26, 2014 at 16:02

Hi there,

i'm trying to set up a STM32F429 as a host for mass storage devices.

I'm using emblocks IDE with firmware generated by CubeMX (STM32CubeF4).

The cube library has an example project for an usb host, which unfortunately is poorly documented.

Is there some documentation out there that can help me figure out how to get this usb library working?

Beside this wish for a general documentation i have another specific question:

As a first step i tried to figure out how an attached device is recognised by the host. As far as i understand, the host needs to poll something on the bus to recognise an attached device. But there is no communication on the data pins at all.

Can you please tell me what steps are necessary to start a communication?

Thanks in advance!
1 REPLY 1
chen
Associate II
Posted on May 27, 2014 at 17:25

Hi

''i'm trying to set up a STM32F429 as a host for mass storage devices. ''

''Is there some documentation out there that can help me figure out how to get this usb library working?''

Not for STM32Cube. It is suppose to be 'autoconfiguring'

''Can you please tell me what steps are necessary to start a communication?''

The best I can do is to point you at the old USB OTG library (driver) :

http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1743/PF257882?s_searchtype=keyword

It contains examples of 'USB Host'

It also has some documentation. From what I understand from other people's posts on this forum - STM32Cube generates code that is similar to the old library but with different naming.