USB Stall Behavior (CubeMx, CDC)
Hi,
I'm struggling to integrate a USB interface into a bootloader. The microcontroller always stalls the USB communication. To find the cause of this problem I have set up a simple project to compare the USB transfers and came to a point where I can't explain the behavior of the USB periphery.
1) Failed USB transfer

LED_BLUE is toggled in USBD_LL_StallEP(...) of usbd_conf.c. After that, the PID OUT request from the host ist answered with a STALL handshake packet. Seems reasonable.
2) Successful USB transfer

In the reference project USBD_LL_StallEP(...) is called as well, but the PID OUT request is answered with NAK, not with STALL. Next, the host retransmits PID OUT, which is ACKed by the device and everything works fine. USBD_LL_ClearStallEP(...) is never called, so why does the communication not stall?
Any tips on how to explain this behavior?
Kind regards,
Moritz
