How to achieve 8nA in shutdown mode with wakup pin on L412?
- April 29, 2020
- 6 replies
- 1506 views
Hello,
I'm experimenting with ulp I'm starting from lowest power consumption achievable and add
peripherals and wake up conditions to see what happens.
That's why I'm starting with shutdown mode.
I'm using a custom board with only an STM32L412K8, few capacitors and 6.8k between BOOT0 and GND. I'm running 3.3v.
According to this application note (page 15) , current should be 8nA.
The datasheet (page 107) says it should be 5-6nA.
CubeMX simulator (configured at 25°C) says it should be 31nA. I don't understand why CubeMx current simulator is different from the datasheet, but anyway, for my application it's "not that far".
All measurments stated after are done without programming probe and using X-nucleo-lpm01A as micro-amperes meter.
I run a basic application that does nothing more than :
HAL_Delay(5000);
HAL_PWREx_EnterSHUTDOWNMode();I don't have any GPIO configured.
After entering shutdown, current measured is about 68nA. Not that far from cubeMx but not very close to datasheet. Ok, let's imagine that it is measurement error.
Now, I try to add a wake up pin. So I do something like this based on an example from the library:
HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN1);
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_HIGH);
HAL_PWREx_EnterSHUTDOWNMode();With this setup, current is 5 to 7µA, (depending on the clock used before shutdown). This time, it is 1000x the current from the datasheet.
I found nowhere anything that explains how to configure wakeup pin in order to get the graal of some nA.
How should I do?
Thanks
Julien
