Open SL-RU opened 2 years ago
Thanks for the issue, unplug/suspend indeed isn't fully working with all STM32 mcus. Some requires an configure to OTG A/B register setting. Look like it is the case here, unplug is mistaken as suspend and device isn't reset/re-init state/endpoint as it should be. I think the old driver at st/synopsys does handle this better, maybe you could give it a try. I will revise this later on when having time.
Operating System
Linux
Board
Custom stm32f769 with HS phy
Firmware
examples/device/cdc_msc_freertos with synopsis_dcd2
What happened ?
After booting and plugging in the first time everything works fine. But if I unplug USB cable when there is msc transmissions after plugging again tusb don't work correctly. Transmission stops every time in the same place:
Also there is no UNPLUG events. On unplug there is only suspend event.
I've fixed this issue doing tud_init again with removed checking tud_inited() if device is suspended
How to reproduce ?
Use example with mentioned MCU
Debug Log as txt file
No response
Screenshots
No response
I have checked existing issues, dicussion and documentation