2021-04-27 10:08 AM
hi all ,
i have a situation,
1. external supply vdd given to cpu, with application running on it
2. usb-otg is connected from computer to stm32mp1 which provides v5.
3. power off/take off external power supply
ideally unit should be OFF, but CPU is getting supply from PC-computer, has any one have suggestion ?
how to make only power on and off via external board supply only after application running?
2021-04-28 08:15 AM
Hi,
Could you please elaborate a bit more.
Which board are your using ?
If it is STM32MP157x-DK1 or DK2, the board is not supplied when only a computer is connected on OTG (USB Type-C CN7) without any supply on dedicated CN6 connector.
Regards.
2021-04-28 09:15 PM
This is coustom board designed on stm32mp157caa3
usb2 configured as otg its opened as a serial gadget,
When I unplug power to the unit but have USB connected the unit is still powered. some how the unit is getting power from pc,
2021-04-29 02:45 AM
You have to dig into your schematics, your have an unwanted voltage path between your OTG VBUS and STPMIC1 VIN.
That's not linked to STM32MP15x nor SW setting.
Regards.
2021-04-29 07:57 AM
does overcurrent from TPS2051BDGN makes any difference ?
2021-04-29 08:11 AM
I'm sorry, but we cannot answer on your specific HW. It is normally your duty to debug your specific HW you select/assemble based on your requirements.
Do you have followed recommendations on AN5031 or copied some existing schematics from STM32MP157C-DK2 board ?
Did you use STPMIC1 ?
What I can confirm is that STM32MP157C-DK2 and STM32MP157C-EV1 boards are correctly shutdown even when USB is connected to the PC.
Maybe you have to check with the DK2 or EV1 schematics where you missed something on your design around USB OTG connector.