Permanent current drain from VBAT
Hi,
we are using a coin cell to supply the internal RTC of an STM32MP157 when our system is unpowered.
This works as expected - as long as the external supply is off. As soon as the system is powered on, the battery is discharged with >20µA.
Observing the register ADC_CCR shows that VBATEN is permanently set, connecting VBAT to the ADC input and a resistor devider (as stated in Fig. 248 in the reference manual).
[Edit: removed misleading reference to ADC driver]
In my understanding VBATEN is supposed to be set only while (and shortly before) VBAT is actually sampled. Otherwise the switch as seen in Fig. 248 does not make much sense to me.
