[DNM]: Stm32c5 halv2 usb rework - #22
Conversation
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: cumin <13809292481@163.com>
Signed-off-by: cumin <13809292481@163.com>
also enable USB double buffer for HALv2 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
|
Hi @fpistm, thanks for the rework — reviewed, tested, and force-pushed into stm32duino#3059. Review
On hardware (XIAO STM32C5, same USB_DRD_FS IP as your C562RE)
Observation on the XIAO (follow-up needed)
ARM64 and other hosts remain untested on my side, as before. |
|
Thanks @cumin777 About your issue, could you try with this PR: |
|
Context. Stress-tested the CDC path on XIAO STM32C5 (HAL v2 / DRD IP, rework from stm32duino#3058 verified on C5. With stm32duino#3058's two commits on top of the rework: ladder New finding: rare RX endpoint stall in double-buffer mode. Present with stm32duino#3058
Failure mode: echo stops mid-block (e.g. 894/1024 bytes echoed), zero bit errors before Since neither class-layer backpressure nor masking the re-arm against the USB IRQ Suggestion. Until the DB receive path is investigated, defaulting the CDC bulk OUT |
|
Yes. Please share. |
This PR is a review/rework of the stm32duino#3059
#warning "USB device support is currently implemented only for STM32C5xx HAL v2.". Assume by default it should be ok.This PR is functional on Nucleo C562RE (single or double buffer).
/cc @cumin777