I'm using a the STM32L412KB board in a project, and one of the reasons I picked it is due to its low current consumption.
But then I did some measurements and found out that the consumption is much higher than expected: approximately 16 mA in operation and 600 uA in deep sleep (using the
Code: Select all
LowPower.deepSleep()
I'm thinking that this has to be due to "wrong" configuration of the MCU for this case?
Can someone help me what I need to check?
I will for sure first try and set all unused pins to output LOW or input with pull-down. What is actually the default state of pins?
Should I also look into unused clocks and unused peripherals?
It is a bit difficult for me to find out what is going on in the core. Which files should I look at? Is it everything related to my board under the system and variants folders? The thing is I don't see where do the peripheral clocks get enabled.
I must say I don't have that much experience with STM32 MCUs, so perhaps there are obvious things I'm missing.