High Current Consumption in Stop2 mode STM32L4
I am trying to achieve the lowest power consumption possible when entering Stop2 mode with the STM32L476. I have verified that all of my GPIO are in the correct state before entering Stop2 mode. I am also very confident that it is not any external circuitry on my board at this point as I have done extensive testing.
My current consumption is about 280 uA when entering stop2 mode. About 35 uA can me accounted for with the current draw of a couple of my external circuits. However, the MCU itself should be drawing around 3-5 uA.
Are there any things someone can point me to to check in order to see what might be causing the problem?
In my sleep projects code, I initialize the system clock, all gpios, and several peripherals. Then, I deinitialize all said peripherals, set my GPIOs to the proper settings, and then enter sleep mode.
Any guidance would be greatly appreciated. I have been stuck on this for weeks.
