Skip to main content
Zek_De
Senior
July 5, 2022
Question

STOP Mode, RTC wakeup timer isr, gpio isr and priority

  • July 5, 2022
  • 0 replies
  • 607 views

Hello everyone,

I run the mcu in stop mode with this function below

void set_stop_mode(void)
{
	HAL_SuspendTick();
	HAL_PWR_EnableSleepOnExit();
	HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
}

System works in two interrupt below

1 - HAL_RTCEx_WakeUpTimerEventCallback and priority is 0

2 - EXTI4_15_IRQHandler and priority is 1

My goal:

A) While the 2 is running ,if the1 is fired -> The1 must be executed (success)

B) After the 1 has been completed, the 2 must be run again with interrupt signal(fail).

This B section doesn't work.

Addition: Both interrupts are working properly as individual. No problem with interrupt firing.

Thanks in advance

This topic has been closed for replies.