Proper way to Delay / Pause in the middle of USB MSC transaction.
Hello. I'm currently implementing USB Drag and Drop Bitstream loader for FPGA using STM32F103CBTB and latest CubeIDE (1.10.0). The implementation uses STM32 in USB Mass storage class and virtual file system based on FAT12. The part of Drag and drop is working fine. But If I add 200ms delay into the code (line 354) which is under STORAGE_Write_FS() in usbd_storage_if.c , This cause USB to halt. So, my question is there any way to pause USB transaction for 200ms delay and continue transaction? I attached the source of usbd_storage_if.c down below for who want to take a look at. Thank in advance!
