cancel
Showing results for 
Search instead for 
Did you mean: 

Disable USB Interrupt

vlad2
Associate
Posted on June 11, 2014 at 15:26

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-interrupt
2 REPLIES 2
Posted on June 11, 2014 at 17:10

Well how long does this ''time critical'' stuff take, is the problem that it doesn't service the IRQ in a timely fashion?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
vlad2
Associate
Posted on June 11, 2014 at 18:40

''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.