2020-01-13 01:23 AM
Hello,
Running my program on the STML011k4 consumes about 50mA, when in stopmode this drops down to about 40 mA. I know the stopmode does still power the RAM, but 40mA is way too high according to the datasheet.
Another thing I find odd is that the LEDs on the board don't turn off, and I find this weird because the LEDs consume a lot of power, so you would expect that they get turned off when the device is put into stopmode.
I use the following HAL function to enter the stopmode: HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
I also tried entering stopmode by setting the registers myself, but this makes no differece in current consumption.
I use an external interrupt to wake the device up out of the stopmode, this seems to work fine.
Also I am quite sure the core gets powered off, because I can not debug when HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); is executed.
All my unused pins are set to analog.
Could somebody help me out here?
Kind regards,
Sjoerd