2012-07-03 03:57 PM
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?[]I need to connect a USB custom device (that embed an Arm9) to a STM32F4;Any info will be welcomed.2012-07-03 04:40 PM
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¤tviews=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=2122012-07-03 06:24 PM
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.2012-07-30 08:39 PM
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.
Thank you clive1/alokm!
2013-12-15 07:43 AM
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?[]I need to connect a USB custom device (that embed an Arm9) to a STM32F4;Any info will be welcomed.