2023-09-02 05:54 AM
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.
2023-09-02 06:56 AM
Would be helpful to see more of the schematic. How is USB connected to the chip? Are you using supported pins? Can you connect over SWD?
2023-09-02 05:59 PM
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?
I've cross posted slightly here on stack exchange where I have more schematic sections posted, https://electronics.stackexchange.com/questions/679846/stm32h723-not-entering-usb-dfu-mode
2023-09-02 06:00 PM
And the code runs as expected on the board too, serial terminal, gpio pins etc.
2023-09-08 10:25 AM
I've also reviewed https://www.st.com/resource/en/application_note/an5225-usb-typec-power-delivery-using-stm32-mcus-and-mpus-stmicroelectronics.pdf and its unclear whether the STM32H723 can use the USB 2.0 approach (which I've used), or if it needs the OTG approach (which frankly is a lot of stuff and I'd likely look to use a chip like a TUSB320).
In the mean time I've got zephyr with a usb cdc example. I'm seeing the driver complain about 'PWR not active yet'. Tried jumping usb vbus to PA9 but this hasn't resolved the issue.