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
2025-01-19 11:58 AM
Shutdown mode is not mentioned in the DS12991 Rev 4 datasheet for STM32G030F6, but in the DS12992 Rev 3 data sheet for STM32G031F6 and similar.
hth
KnarfB