USB OTG HOST Enumoration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-06-05 3:58 AM
Hi:
I got stuck trying to use STM32 Connective line controller towork as a USB HOST. If I attach flash drive the device attaching is detectedbut the enumeration is not working. USB Control packet is send but the devicealways returns URB_STALL (as per USB OTG flag). I tried different devices sameresult.
Anyone has any suggestions?
Thanks,
Konstantin
#off-topic #old-thread #usb-host-library-enumeration- Labels:
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-06-19 11:21 PM
It is gcc 4.5.2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-06-23 3:53 AM
I'm encountering the same issue. Can you share your actual fix ?
thanks in advance
fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-06-23 4:57 AM
Just eliminate the uint16_t_uint8_t type and substitute with uint16_t and change the code where it is being used. Example:
typedef union _USB_Setup
{
uint8_t d8[8];
struct _SetupPkt_Struc
{
uint8_t bmRequestType;
uint8_t bRequest;
uint16_t wValue;
uint16_t wIndex;
uint16_t wLength;
} b;
}
USB_Setup_TypeDef;
I have to warn you that I am still encountering problems with this firmware and it seems nobody ever bothered to test how the code behaves when GCC is used as compiler.
Thanks,
Konstantin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-06-24 6:48 AM
This is strange ! Does it mean that GCC is not able to compile/recognise the union...? Changing the union type to uint16_16 will probably affect other parts to code.
By the way, Petrov, can you share with us the firmware you want to run ? Mass-storage or HID ? Do you have any other compiler, for which the workspace is already available in library ? I tried mass-storage and HID both with IAR, it works fine ! The project was already available in the lib ;-))- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-10-27 10:37 PM
Hi alokm
Did you connect USB keyboard? I tried to connect to keyboard with STM3210C-Eval board but didn't get keyboard data. Get VID, PID and Enumeration was done propely. What's wrong? Thanks.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-26 5:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-26 8:48 AM
Please don't dig up 3 year old posts when you have already posted in the here-and-now with your own thread.
Your thread will either be answered by current participants in the forum, or it won't.Up vote any posts that you find helpful, it shows what's working..

- « Previous
-
- 1
- 2
- Next »