I try to create a software interrupt in STM32L476.
This is the software interrupt enable code
HAL_NVIC_SetPriority(EXTI1_IRQn, 3, 0);
This is the interrupt trigger code
The interrupt is not generated, how come? what am I missing?
The datasheet says the following:
14.3.6 Software interrupt/event selection
Any of the configurable lines can be configured as a software interrupt/event line. The
procedure to generate a software interrupt is as follows:
1. Configure the corresponding mask bit (EXTI_IMR, EXTI_EMR).
2. Set the required bit of the software interrupt register (EXTI_SWIER).
This is exactly what I'm doing. "normal" interrupts work.