cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H723 not entering usb dfu mode - usb type-c configuration/wiring issue?

CMorg.1
Associate II

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.

 

4 REPLIES 4
TDK
Guru

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?

If you feel a post has answered your question, please click "Accept as Solution".

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

And the code runs as expected on the board too, serial terminal, gpio pins etc.

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.