Hi,
without using OTG I was able to detect the insertion of a USB power supply by monitoring the CHRG_OK pin or the AC_STAT bit.
After activating OTG when no power supply is present (CHRG_OK got low) this does not work anymore.
CHRG_OK pin is always low, and AC_STAT is always high?
How is that supposed to work?
Greets,
Joerg