Skip to main content
joe
Associate III
April 14, 2014
Question

Bug HAL_NVIC_EnableIRQ(EXTI9_5_IRQn)

  • April 14, 2014
  • 1 reply
  • 748 views
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.
    This topic has been closed for replies.

    1 reply

    stm32cube-t
    ST Employee
    April 24, 2014
    Posted on April 24, 2014 at 11:12

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