2022-12-30 05:25 AM
2023-01-03 04:48 AM
Hello @jdo,
The "HAL_PWREx_EnableFlashPowerDown();" function is not available in STM32L0 package.
To minimize the consumption in Stop mode with STM32F4 MCU, FLASH can be powered off before entering the Stop mode.
In your case, try to check the consumption, when all pins are set as analog and without used "HAL_PWREx_EnableFlashPowerDown()" function.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-01-03 05:11 AM
Your 4 output and led in stop mode sink how many current ? = schematics.
2023-01-03 05:36 AM
i am using internal clok 8 mhz
2023-01-03 07:22 AM
in stop mode with: HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
i have 0.3 uA, but i put in while {}
while (1)
{
tec_master();
if (key_row)
{
monitor_cpu++;
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
}
but monitorcpu increase continue without press key.
2023-01-03 07:23 AM
need stop the clock?
2023-01-03 07:28 AM
Ahhh i write in first message You flash code from IDE with disabled debug in low power mode ?
For measure and use STOP or other low power mode you cant use debug!
2023-01-07 05:27 PM
2023-01-11 03:22 AM
thannks! now i have 0,5uA in mode stop, the macro HAL is problem, i am using register and is rigth.