cancel
Showing results for 
Search instead for 
Did you mean: 

ST USB Host releases - Generic Driver;

marceldanilo
Associate II
Posted on July 04, 2012 at 00:57

Hello everyone!

I have been reading about the USB Host capability of STM32F4 family;

According I have read, the libraries are limited to attach HID and MSC devices; The drivers are developed just for these classes;

Will the ST release some Generic Driver and tools like Microchip has?

[

http://ww1.microchip.com/downloads/en/AppNotes/01143a.pdf

]

I need to connect a USB custom device (that embed an Arm9) to a STM32F4;

Any info will be welcomed.
4 REPLIES 4
Posted on July 04, 2012 at 01:40

The libraries come with examples, these are instructive and layered, they do not stretch the limits of the USB, merely illustrate some common examples.

Prior thread on this topic

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/USB OTG for custom an USB device&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx?Paged%3DTRUE%26p_StickyPost%3D%26p_DiscussionLastUpdated%3D20120628%252003%253a22%253a38%26p_ID%3D23204%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41&currentviews=212]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fUSB%20OTG%20for%20custom%20an%20USB%20device&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FAllItems%2Easpx%3FPaged%3DTRUE%26p%5FStickyPost%3D%26p%5FDiscussionLastUpdated%3D20120628%252003%253a22%253a38%26p%5FID%3D23204%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41¤tviews=212

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
alok472
Associate II
Posted on July 04, 2012 at 03:24

my suggestion is to start from Mass-storage example. The Core / Enumeration remains the same for all usb devices.

since yours is vendor specific implementation, you need to check if there are any class-specific request. you need to hook these. Normally there shouldnt be any.

use BulkSendData and ReceiveData functions available to make your implementation.

marceldanilo
Associate II
Posted on July 31, 2012 at 05:39

  • Recently I have modified the MSC library to accept my device as a MSC device; So the STMF4 did the complete enumeration;
  • Second what I watched on a USB sniffer, after the device is ready, just Bulk transfers are performed; Tsuneo recommended this analisys, at [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/USB OTG for custom an USB device&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx?Paged%3DTRUE%26p_StickyPost%3D%26p_DiscussionLastUpdated%3D20120628%252003%253a22%253a38%26p_ID%3D23204%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41&currentviews=212]this post;
  • The device has two endpoint bulk - like MSC devices;

  • Using BulkSendData I get a packet in the device side - I think it worked fine;

  • Using BulkReceiveData it doesn't work - However I have no ideia why the error occours. When I stop the degug, the program stop on interrupts routines, at the usb_hcd_int.c file. Is the host expecting something from the device? Can't the device response the host? I'm investigating about this currently. 

If someone has some idea, please help me. 

Thank you clive1/alokm!

abelloni
Associate II
Posted on December 15, 2013 at 16:43

Hello everyone!

I have been reading about the USB Host capability of STM32F4 family;

According I have read, the libraries are limited to attach HID and MSC devices; The drivers are developed just for these classes;

Will the ST release some Generic Driver and tools like Microchip has?

[

http://ww1.microchip.com/downloads/en/AppNotes/01143a.pdf

]

I need to connect a USB custom device (that embed an Arm9) to a STM32F4;

Any info will be welcomed.