Other Parts Discussed in Thread: BQ25798
Hello,
MY GOAL
So what I want is when VBUS is applied and VBAT is applied, charging should start.
OTG_MODE is set to 1.
Then when I remove VBUS, 5V is present as a source on VBUS so that If I plug a device, this device will be powered.
If I plug back a host or power source, then it starts the charging.
SO WHAT IS THE PROBLEM
VBUS is applied and VBAT is applied, charging start=> OK
OTG_MODE is set to 1.
VBUS removed, Device plug => OK device is enumerated
VBUS removed, Host/Power plug => NOK, the battery is not charging
So, how the charging could be back automatically?
Thank you