cancel
Showing results for 
Search instead for 
Did you mean: 

How to disbale All interrupts except systick timer interrupt ?

SA.17
Associate III

I am using STM32L072XX

thanks

4 REPLIES 4

At the peripheral level, or within the NVIC

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

i am using __disable_irq(); and __enable_irq() now but it disable systick timer interrupt also,

What do u mean by peripheral ,nvic ?

Each peripheral has bit setting enable interrupts within, and the NVIC has an array of bits indicating which are currently enabled.

Perhaps architect your code so it is not impacted by the behaviour of other interrupts.

For example doing the work in an interrupt/callback that precludes lesser priority sources from pre-empting

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Read PM0223, Nested vectored interrupt controller chapter.

JW