2025-02-24 2:30 AM - last edited on 2025-02-24 3:57 AM by mƎALLEm
I am not able to enter into the shutdown mode, i am using the below code
int main(void)
{
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_RTC_Init();
MX_USART2_UART_Init();
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_HIGH);
HAL_PWREx_EnablePullUpPullDownConfig();
HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_A, PWR_GPIO_BIT_0);
HAL_SuspendTick();
HAL_PWR_EnterSHUTDOWNMode();
while (1)
{
}
}
2025-03-06 5:24 AM
Hello @Sumukha
You can refer to the provided example under STM32CubeU0/Projects/NUCLEO-U083RC/Examples/PWR/PWR_ModeSelection that shows how to configure the system to measure the current consumption in different low-power modes, including shutdown mode
Fore reference, this question is related to this post: Shutdown Mode in stm32u083rc - STMicroelectronics Community
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.