2023-03-13 08:24 AM
Hi! I am working currently on a stm32 F407, I am implementing USB Communication Device Class with the microcontroller being a device. The microcontroller is powered via the STLink but I wanted to change that and supply it through the usb I am using for virtual communication. On the data brief, it says that the board has a Flexible power-supply options: ST-LINK, USB VBUS, or external sources. I assume that I have to use the USB Vbus.
The reference manual says that :
On-chip 5 V VBUS generation is not supported. For this reason, a charge pump or, if 5 V are available on the application board, a basic power switch must be added externally to drive the 5 V VBUS line. The external charge pump can be driven by any GPIO output. This is required for the OTG A-host, A-device and host-only configurations. The VBUS input ensures that valid VBUS levels are supplied by the charge pump during USB operations while the charge pump overcurrent output can be input to any GPIO pin configured to generate port interrupts. The overcurrent ISR must promptly disable the VBUS generation.
My question is does that mean that I have to add a circuit to my board in order to connect the Vbus with a GPIO and that's how I am going to supply it through the USB or I did not understand well?
Thank you
Solved! Go to Solution.
2023-04-04 05:59 AM
Hello @LimoGr ,
In the datasheet and precisely in Absolute Maximum Rating (AMR) table is stating that a +5V tolerant pin voltage can be maximally VDD+4V. So the situation where the MCU is not powered and 5V VBUS is connected to PA9 must be avoided because it is violating AMR.
Two solutions can be proposed:
For more explanation, I recommend you this FAQ: Management of VBUS sensing for USB device design.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-04-04 05:59 AM
Hello @LimoGr ,
In the datasheet and precisely in Absolute Maximum Rating (AMR) table is stating that a +5V tolerant pin voltage can be maximally VDD+4V. So the situation where the MCU is not powered and 5V VBUS is connected to PA9 must be avoided because it is violating AMR.
Two solutions can be proposed:
For more explanation, I recommend you this FAQ: Management of VBUS sensing for USB device design.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.