Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 3 months ago.
Power consumption??
Hi.
I have an application that requires low power. The lowest I get is about 0.6mA in deepsleep. To my understanding it should be able to achieve a lower level (a few uAmps).
I have found there is a header in the hal library called STM32L1xx_hal_pwr_h, that provides some functions but I don't know how to use them properly...
Does anyone have an example or some info on how to reduce power consumption?
Thanks.
Question relating to:

Followings are not direct answer for you but some hints.
posted by Kenji Arai 08 May 2015https://developer.mbed.org/users/kenjiArai/code/Nucleo_RTC_battery_bkup_pwr_off_okay/
In the SetRTC.lib, you will see void goto_standby(void) function.
You can modify clock on/off control and others.
https://developer.mbed.org/users/kenjiArai/code/SetRTC/file/ef7d2c83034d/SetRTC.cpp
In addition, you can see my BMP180 program at below.
http://www.page.sannet.ne.jp/kenjia/STM32L_w_PN2_baro.html
Sorry this is only Japanese but I have reached 16.5uA. total current at STOP mode.