Is there a way to detect if a battery (3.3V) is available from the firmware?
I’ve read that SRAM only initialises when a battery is present (eg. VBAT not floating). So there is some way to detect if the SRAM is active (or battery is present?).
I’m creating a device and sometimes I’d like to add a battery and sometimes not. I don’t want to change the hardware (connect VBAT to ground, if no battery is present).
I’m also curious what happens if the battery connected to VBAT runs empty.