2014-06-11 06:26 AM
Hello,
I use STM32F0x2_USB-FS-Device_Lib V1.0.0, in my application exist time critical section, where I need disable interrupt from USB. I try call NVIC_DisableIRQ(USB_IRQn)/NVIC_EnableIRQ(USB_IRQn), but looks like I loose data transfered to host.How to correctly disable USB interrupt? #usb-interrupt2014-06-11 08:10 AM
Well how long does this ''time critical'' stuff take, is the problem that it doesn't service the IRQ in a timely fashion?
2014-06-11 09:40 AM
''Time critical'' ~10ms, I receive data with external clock and any IRQ may causes failure.
I think I guessed what could be the problem.
When I enable IRQ after pause, interrupt flag is set ( I skip 10 requests), but host already not listening me and transmitted data is lost. Probably I need reset interrupt flag and then enable IRQ.