2016-09-30 04:41 AM
Hello!
I use STM32F429ZI and I try to set a software interrupt, but it doesn't work. I set it as follows: EXTI->IMR |= EXTI_IMR_MR0;NVIC_SetPriority(EXTI0_IRQn, 15);
NVIC_EnableIRQ(EXTI0_IRQn);
__HAL_GPIO_EXTI_GENERATE_SWIT(EXTI_SWIER_SWIER0);
void EXTI0_IRQHandler (void)
{
SET(TEST_X2);//test point
}
Software interrupt is not trigered. Help me please. Am I missing something? Thank you for your help.
2016-09-30 06:13 AM
SYSCFG clock enabled?
2016-09-30 06:35 AM
Hello,
Make sure you've configured the pins, and that the GPIO and SYSCFG clocks are enabled.Regards2016-09-30 06:38 AM
Yes, I use __HAL_RCC_SYSCFG_CLK_ENABLE(); in HAL_GPIO_Init