I'm wondering if this is caused by the use of a usb type-c connector. Is there recommended wiring for how to connect a type-c to STM32 processors while retaining the ability for dfu functionality?
Note that for BOOT0 R30 has been modified to be 0 ohm on my test board. Also I've removed D1.
Able to connect over SWD. USB is connected to DP and DM only, no connection to vbus or ID pins.
Board boots normally if reset without holding the BOOT0 button but hangs at startup if booted when holding the BOOT0 button. So maybe its getting stuck in a DFU by accident?
I can't tell from AN2606 but maybe its a transition on one of the other pins at power up causing the issue?