STM32 gotchas
310. Sudden increase of current in 'L0 in STOP mode, due to ADC voltage regulator not switched off

The STM32L0 family may be a good choice for applications, where no high computing power is necessary, but chip size and power consumption must be kept very low. However, to achieve the lowest possible consumption, care must be taken to switch off all circuitry which is not necessary, before entering any low-power mode.

Users reported, that after entering the low-power STOP mode, after several minutes, consumption suddenly increased from around 1uA to much higher, even tens of uA. The reason reported by users Manul and glinders was, that the ADC's regulator has not been switched off (through the ADC_CR.ADVREGEN bit) before entering the low-power mode.

While the requirement to switch off the ADC regulator *is* documented in the manual, the fact, that failing that the consumption was increased only after a couple of minutes, may be confusing indeed.