cancel
Showing results for 
Search instead for 
Did you mean: 

Bug HAL_NVIC_EnableIRQ(EXTI9_5_IRQn)

joe
Associate II
Posted on April 14, 2014 at 17:04

Don't know if this is an oversight or normal. When I configure a pin with CubeMX to be ''External Interrupt Mode with Falling edge trigger detection'' for example, and enable the interrupt in the NVIC configuration, the NVIC setup code doesn't get generated.

If I manually add:

    /* enable EXTI interrupt handling */

    HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_1);

    HAL_NVIC_SetPriority(EXTI9_5_IRQn, 0, 4);

    HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);    

then the interrupt handler gets called. Shouldn't this be generated, otherwise why allow changes to the Preemption Priority and Sub Priority in the NVIC configureation in CubeMX.
1 REPLY 1
stm32cube-t
Senior III
Posted on April 24, 2014 at 11:12

You are correct. This problem is fixed for STM32CubeMX 4.2 release (coming out soon).