cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32L433] Asking if there is an example code about how to enter/exit low power sleep mode correctly.

EHsie.2
Associate II

Hi everyone,

I'm working on STM32L433 Nucleo-64 board and I would like to try the low power sleep mode to see the power consumption part.

From datasheet, current consumption us XXuA.

0693W00000NpahUQAR.png 

Use my example code, the current consumption(PIN is JP6) is about 5.2mA.

0693W00000NpagCQAR.jpg 

Anyone can help me to refine/debug my example code(at attachment)?

If possible, I would like to see the current consumption is matched with datasheet. Thanks.

3 REPLIES 3
Piranha
Chief II

Set DBGMCU_CR to zero and disconnect the debugger physically.

Let me try it first. Thanks.

MFran.4
Senior

I had a similar problem and for obtaining reasonable results i used a custom board with only the MCU soldered. I passed from hundreds of uA to the promised few uA.

I checked the NUCLEO's jumpers but it wouldn't work. If you can use a custom board I'd try.