2025-01-19 11:38 AM
Hi Experts,
We are building a battery based product based STM32G030F6 MCU. We are using Arduino environment as we need multiple Arduino libraries for the project.
Well our software is working fine, however we are facing issue with the current consumption. It has to wakeup every 5 seconds and send some data. We are able to put microcontroller in DeepSleep mode using STM32LowPower Library In deepSleep mode it takes around 175uA current. We need to further reduce the current consumption to less 20-25uA. So we are trying to use shutdown mode but not able to use it.
When we use shutdown mode, it still takes 175 uA. When analyzed the code we found that it is falling back to deep sleep mode when it does not found LSE. When LSE is available it tries to call function
HAL_PWREx_EnterSHUTDOWNMode()
It is available in Arduino core for STM32. File name stm32g0xx_hal_pwr_ex.c
Solved! Go to Solution.
2025-01-21 09:23 AM
Many programmers repeat this mistake. Debugger setup MCU in default to debug in low powetr mode. Result is more current measured after flash and run, without power disconnect. This regs isnt reset ...
And for low currents is designed better F or L series.
2025-01-28 04:00 AM
Dear KnarfB,
You are right. It finally turned out to be my ammeter problem for micro ampere measurement.