MSC slow after USB sleep with CDC and MSC configuration
Operating System
Windows 10
Board
STM32F103
Firmware
tinyusb 0.11.0 with CDC and MSC option set runs without OS on STM32F103 board.
What happened ?
The program runs quite normal until the CDC and MSC idle for hours.If you open a file in the tinyusb disk with Windows 10 file explorer,it will stuck for a long time and you will see the disk usage in task manager which is 100%,in the mean time if you send some data to the cdc COM port,it will resume normal.By the way I do call tud_int_handler(0) int USB wakeup irq handler.
How to reproduce ?
1.Plug the usb into a Windows 10 PC,you can see a COM port in Device Manager and a USB disk in File Explorer 2.Leave the device for hours(I don't know the exactly time,I just leave it there for a whole night) 3.Open a file in tinyusb disk,and you will be stucked. 4.Send some data to the COM port and all will be resumed after that.
Debug Log
No response
Screenshots
No response
could you provide a bit more info
- Which exact firmware you are using, if possible please check with the examples/cdc_msc, otherwise, please attached your firmware similar to how stock firmware for reproducing.
- Instead of
Leave the device for hours, can you try to sleep/suspend pc, then resume to see if it is sleep/suspend related issue - Build example with
make LOG=3 BOARD=your boardthen attached the the log file here around the incident occur for analyzing.