STM32F401 USB CDC stuck in IRQ loop
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-18 1:27 AM
Posted on February 18, 2015 at 10:27
Hi,
I'm using the USB Host library 2.1.0 (with USB_OTG_FS) on an STM32F401CD. Using the USB CDC code I'm having the following issue:When the STM32 is connected to a PC but no application on the PC has the port open, the STM32 gets stuck in an interrupt loop:- USBD_OTG_ISR_Handler (at inepint handler)
- DCD_HandleInEP_ISR (at emptyintr handler)
- DCD_WriteEmptyTxFifo
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
‎2015-02-18 1:54 AM
Posted on February 18, 2015 at 10:54
Just stepped through more: you get repeats of 5x DCD_WriteEmptyTxFifo and then 1x usbd_cdc_SOF... But so often that no code can run outside of IRQs.
It appears to happen because right at the start, Handle_USBAsynchXfer has sent some data with DCD_EP_Tx.However, I also use this firmware on an STM32F103 (with the USB library for that) and that does exactly the same thing but is able to keep working perfectly fine.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-20 12:03 AM
Posted on February 20, 2015 at 09:03
Hi Gordon,
It sounds like this reported bug. Good luck !