Solved
Dynamic exception priority change in STM32 Cortex-M4
I am using the timer interrupt and currently, it has priority 3 once I get into the ISR then I want to change the priority to 2. I have used like below but the priority not changing.
NVIC->IPR[6] |= NVIC_IPR6_PRI_25 & 0x22222222;
__dsb(0);
In above, __dsb(0) or __dsb(1) I am not getting?
I am using the Keil environment.
