cancel
Showing results for 
Search instead for 
Did you mean: 

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

Zek_De
Senior

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

0 REPLIES 0