cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_NVIC_EnableIRQ while thread executing

Ghada Dhibi
Associate II
Posted on January 11, 2017 at 18:58

Hi all, 

I'm using STM32L4 MCU and FreeRTOS V8. 

I have implemented thread that execute normaly, 

During this thread, I have to initialize HAL interrupt (by executing  HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);

Unfortunately, it seems that

my interrupt does not work

, and I guess because it was

 not created properly. 

Any Idea ?! 

Thanks.

Ghada.

1 REPLY 1
Posted on January 11, 2017 at 20:29

Why is it necessary to guess? Can't you look at the NVIC registers? Can't you review what you do prior to enabling it in the NVIC?

It is much more likely that you're just not setting it up early enough, or things aren't occurring in the way/order you want.

Does the EXTI interrupt work if you just test that one thing? ie initialize the pin, source, EXTI, NVIC, etc

Can you instrument with GPIO signals, and review the EXTI source and interrupt in the context of you setting things up?

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