STM32F303xB: How to reset USB Endpoint on USB disconnect ?
Hi,
I'm using custom hardware that has STM32F303VB (firmware version F3 v1.8.0) and uses USB in self-powered mode.
I have modified USB Custom HID class to appear as USB Vendor Class (1 IN + 1 OUT endpoint). USB Vendor class is working fine except one generic case. The USB communication does not work after the USB cable is disconnected and reconnected.
I'm assuming the problem is that the endpoints are not reset when the cable is disconnected. I did not see such a function in the USB HAL.
Has anyone implemented endpoint reset functions?
Did anybody face a similar problem?
Any inputs will be of help!
Regards, Pj
#stm32f303 #usb #endpoints