cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform I/O operation for USB Device MSC in background?

gladov
Associate
Posted on October 08, 2015 at 11:29

Hello,

I am trying to use USB Device Library from  STM Cube to make a Mass storage device. All works fine now, the device detected by hosts and performs read/write operations. But I've noticed that I/O operations from usbd_storage.c file called directly from USB interrupt. This is not good for me because underlying physical memory connected tu MCU via slow interface and I/O execution time for sector transferring relatively big. 

Is it possible to use this library in ''acync'' IO mode? Or I should make USB interrupt with lowest prio and let the interrupt to read data directly?

#stm32cube-usb-msc #interrupts
0 REPLIES 0