2010-07-23 11:11 AM
USB composite Device HID-Mass_Storage?
2011-05-17 04:59 AM
The USB device stack on STM32_USB-FS-Device_Lib is not so kind for composite device.
I believe it's much easier on the KEIL example than ST library.
It suggests that ST library is more premature than KEIL one, though I don't think even KEIL one is so matured.
I recommend the ST library development team to try the composite device by themselves.
And then, they'll know too many common procedures are still scattered out on each class implementation. Such procedures should be moved to STM32_USB-FS-Device_Driver side, not in the each class implementation.
Tsuneo
2011-05-17 04:59 AM
I see.
As there are so many parts to merge the two classes on STM32_USB-FS-Device_Lib, you may drop a couple of them.
If it on Windows, change the VID/PID (at least PID) to new one.
And then, monitor the USB traffic on a hardware analyzer or a software sniffer. Sniffer gives you the clue to narrow down the problem(s).
Some software sniffers can monitor the enumeration sequence, for example,
USBlyzer (1 month trial)
What is the first error on the sniffer?
Post the sniffer log around the first error, from 10 lines before to 10 lines after.
Tsuneo
2011-05-17 04:59 AM
Thnanks for your adivce.
Btw, Keil does not support any STM32F107/105 (otg UBS-Host). This make my life not easier. K.2011-05-17 04:59 AM