HOW TO PUT LORA E5-Mini INTO SHUTDOWN MODE AND WAKE IT UP AGAIN

Hello I am working on lora e5 mini dev board with this example

Now I want to put my device into shutdown mode with following code but it restarts repeatly
MX_LoRaWAN_Init();
/* USER CODE BEGIN 2 */

/* USER CODE END 2 */

/* Infinite loop /
/
USER CODE BEGIN WHILE */

HAL_PWREx_EnterSHUTDOWNMode();
while (1)
{
/* USER CODE END WHILE */
MX_LoRaWAN_Process();

/* USER CODE BEGIN 3 */

}
/* USER CODE END 3 */
}
Can anyone help me? Best Regards

1 Like

The HAL_PWREx_EnterSHUTDOWNMode() function should enter the shutdown mode correctly. However, if the device is restarting, it can be due to an external or internal wake-up source being triggered.

I disabled rtc interrupt with following code part but it did not worked HAL_NVIC_DisableIRQ(TAMP_STAMP_LSECSS_SSRU_IRQn);
HAL_NVIC_DisableIRQ(RTC_Alarm_IRQn);