Disable USB Interrupt
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-06-11 6:26 AM
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
Labels:
- Labels:
-
USB
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-06-11 8:10 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-06-11 9:40 AM
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.
