AnsweredAssumed Answered

Bug HAL_NVIC_EnableIRQ(EXTI9_5_IRQn)

Question asked by denehan.joe on Apr 14, 2014
Latest reply on Apr 24, 2014 by STM32Cube-T
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.

Outcomes