Associate III
April 16, 2026
Question
STM32F4 USB Device CDC IN DATA stuck after TXFE IRQ; no XFRC IRQ
- April 16, 2026
- 1 reply
- 189 views
Hello,
Using STM32F4 USB USB_OTG_HS, PCD_SPEED_FULL for USB Device CDC we are transmitting data to Host.
After some minutes the transmission gets stuck.
Although the TXFE IRQ is received, no XFRC IRQ happens and consequently TX state is not set back to 0. The DTXFSTS counter stays on 0x40 (empty is 0x80).
The USB trace looks normal. When the problem occurs the peripheral answers all IN Transactions with a NAK.
Why does the peripheral not transmit the data but does NAK instead?
The problem is seen with different types of Hosts (PC or other embedded devices).
Attached Log Output and Screenshot of the Trace.
HAL 2.4.2 us used. The TxState fix was applied (Enable/Disable IRQ moved to USBD_CDC_TransmitPacket)
Many thanks for any help.
