I am currently working on an stm32-based design. I am trying to understand how to power the stm32 through USB. We came up with the following solution:
The idea is that +3v3_power is the main rail of our product generated when it's powered through sector voltage. V_usb is the power coming from the USB cable (Product as device, not providing power supply). We are making an or-ing thanks to the PMOS. When +3v3_power and V_usb is not here, +3V3 = +3v3_power (pmos on). When +3v3_power is not here, and V_USB is present, PMOS is off, and V_USB is regulated by the Zener diode to supply the stm32. Does this work ?
