Hi again to Tsuneo ;) and all others ..., it's been a while
I cannot get the USB to work properly.
In general, I am familiar with HID, did use it successfully on LPC1768 and Renesas RX62 both using Keil-MDK and their USB lib. Unfortunately, Keil does noth support this lib on the STM32L fork of the chips. (btw: anyone knowing of a port for the chip driver for this)
So I started with ST's HID sample taken out of STM32_USB-FS-Device_Lib_V3.4.0 I stripped off the LED and button part, in order to just get to the bare communication (from Keil's USB-Lib viewpoint, all I wanted was just "naked" SetOutReport and GetInReport functionality)
After the code cleanup, the devices showed up fine on PC as "STM32CustmHID" and seemed to work well (with HIDExerciser) Transferring data TO the device was OK, I quickly ended up in EP1_OUT_Callback() on the target as expected But I fail constantly with reading FROM device. after connection, I expected the EP1_IN_Callback() to get called in intervals as defined in the descriptor bInterval value (changed that to 1 ms) but the endpoint function was never called. I noticed I had eliminated calls to USB_SIL_Write(); and SetEPTxValid(); by mistake, so I added them again, and after the first call to them, the USB System started to call EP1_IN_Callback() periodically, as expected. But from the PC side (using Win7/64 and XP3SP3) nothing changed.
Writing is OK, but reading fails always ReadFile returns with ERROR_IO_PENDING and WaitForSingleObject returns with 0x102 (TIMEOUT)
any hint where to look next would be quite welcome thanks in advance
Uli