Pin configurations in low power modes
In the STM32L4 Nucleo examples, all GPIO on the processor are configured for analog mode before entering stop1 or stop2 modes. In a typical application, there will be some lines that must remain either high or low as to not turn on any external circuitry. My question is, how much current consumption is saved by configuring these pins for analog mode? Is it still possible to get very low current in stop1 or stop2 (<10uA) when using GPIOs as outputs instead of analog mode?
I have a product I am working on that is drawing around 150 uA when in stop2 mode. Most of my pins are configured as analog when entering stop2 mode. However, there are some pins I am using to keep certain circuits on or off. The extra current consumption could be something in one of my external circuits that I havent found yet, but I wanted to rule out the possibility of it being due to me using GPIO outputs instead of analog mode.