Olimex Support Forum

ARM => ST => Topic started by: billr on April 14, 2013, 08:01:15 PM

Title: USB host mode with STM32-H407
Post by: billr on April 14, 2013, 08:01:15 PM
Does anyone have a simple demo using the FS port on the H407 in USB Host mode? The provided demo software calls itself USB_Host, but in reality, it is running in device mode and simulating a USB mouse. I need to connect a keyboard to the FS port and have the software report key pushes.

I've tried building a demo based on the ST USB Library demo projects, but most of the time it fails to get past the enumeration phase. Would like to share knowledge with someone who actually has it working, for any helpful advice.

   -Bill
Title: Re: USB host mode with STM32-H407
Post by: LubOlimex on April 16, 2013, 11:51:23 AM
Actually if somebody has experience in that field we'd also appreciate some info on the hosts. We are struggling with such an example for a new board with STM32F405.

Lub/OLIMEX
Title: Re: USB host mode with STM32-H407
Post by: billr on April 19, 2013, 06:07:17 AM
I'm glad I'm not the only one struggling with this. Hopefully, someone has got it working on a STM32 part of some sort that can be used as a starting point.
Title: Re: USB host mode with STM32-H407
Post by: BJFreeman on May 29, 2013, 08:18:38 PM
I am looking to use http://feaser.com/openblt/doku.php?id=manual:design
Title: Re: USB host mode with STM32-H407
Post by: billr on May 29, 2013, 08:33:55 PM
That looks like an interesting project. Please keep us posted on your progress in getting it working. I notice the USB Host support is marked as "planned/under development".
Title: Re: USB host mode with STM32-H407
Post by: BJFreeman on June 03, 2013, 11:19:29 PM
The Descriptor you send to initialize the USB will determine how it will show it self.
I found this for that might be of help.
http://www.obdev.at/downloads/vusb/HIDKeys.2012-12-08.tar.gz
this link will explain the HID
http://www.usb.org/developers/hidpage#HID_Usage