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.
6 years, 10 months ago.
STM32L476 230uA current in deepsleep when pure HAL from Cube 5uA
Hi
I wrote simple program on Nucleo-L476 Board with mbed-dev. Only main function and while(1) loop with deepsleep() function (to this uC deepsleep enables Stop2Mode). After compiling on device current consumption was 1.4mA (very huge) then I set all pins (GPIOA->MODER as input, GPIOA->OTYPER optput drain, GPIOA->PUPDR no pull). Current consumption dropped to the level 230uA (still to much). Next to compare I generated simple program on ST Cube and copied deepsleep() function from mbed. uC with program from Cube consumed 5uA (over 3uA to power supply (SMPS) and below 2uA uC as in documentation). Why added mbed-dev generate so much power consumption in Stop2Mode (deepsleep()). Which mbed module gets so much current. What functionality should I disable or change in mbed-dev to have lower power consumption. If nothing can change this mbed sleep() and deepsleep() modes are useless for battery power devices. (Previouslu i did similar test for STM32L073 and with mbed-dev current was 30uA)
Can you try against latest mbed OS 5.6 version? (Remove mbed-dev from the project, and add https://github.com/armmbed/mbed-os). Regardless, in STM32 STOP mode there's no Mbed code running on the board anymore, could it be that there still is something floating? I'm doing 5uA on another STM board.
posted by Jan Jongboom 05 Oct 2017