Associate
March 27, 2023
Question
STM32H742VTG6 USB CDC HS hardwarefault "0xfffffffc " at OUT_ep(1).xfer_buff
- 4 replies
- 2192 views
hello, my project uses USB CDC HS to communicate with PC.
Sometimes USB CDC HS work, sometime didnt (it depends on other variables of my project. and these variables doesnt relate to USB CDC HS, just any variable is added/removed).
MCU send data to CDC 30 message 42 byte per second
PC send 100 bytes to MCU when connect 1st time.
Picture 1: when USB CDC work normally.
Picture 2: when hardware fault happens with hardware fault signal trace
Picture 3: when hardware fault happens I just add any variable into OTG_HS_IRQHandler() and it works again.
I use:
- both CubeMX6.3 and 6.8 (generate USB CDC HS, USB CHID FS), CubeIDE Version: 1.11.0 and 1.12.0. they have same problem.
- Bare metal
- increase heap 500, stack 1000 already
Any idea to debug this case?
