Battery voltage measurement values read 0V after several weeks of use. Potentially from to damage to measurement pin due to voltage going above 3.3V, which exceeds maximum voltage rating when PB1 is in analog mode. Possible fix by using pin in digital mode (which is 5V tolerant), and setting PB1 to analog mode only when BATT_VDIV_EN is set.
Battery voltage measurement values read 0V after several weeks of use. Potentially from to damage to measurement pin due to voltage going above 3.3V, which exceeds maximum voltage rating when PB1 is in analog mode. Possible fix by using pin in digital mode (which is 5V tolerant), and setting PB1 to analog mode only when BATT_VDIV_EN is set.