STM32H745 EXTI with STM32CubeMX issue
Hello,
I have a question regarding the external interrupt on a GPIO input pint which is triggered each falling edge (EXTI)
According to the CubeMX autogenerated code, it looks straight forward. I am using a discovery board with pin PE3 which is configured as a simple input with interrupt capability (each falling edge). I took a jumper for the 3,3V power supply in order to simulate edges on the input pin by placing and removing it. I don't see any activities on the EXT3 line interrupt handler.
Do I miss here something or do I use an old version of CubeMX? I read some issues regarding the LL_Init with the EXTI.
I was quite careful to enable all checksbocks in the NVIC/GPIO on the CubeMX. But it doesn't seem to work. Even when I play a with the pulldown configuration. No effect at all.
GPIO_InitTypeDef GPIO_InitStruct = {0};
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOE_CLK_ENABLE();
/*Configure GPIO pin : PE3 */
GPIO_InitStruct.Pin = GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
/* EXTI3_IRQn interrupt configuration */
HAL_NVIC_SetPriority(EXTI3_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(EXTI3_IRQn);
I also tried different pins which are available on the header but it doens't work on any pin.
Are the examples not completed?
I see further functions for the EXTI interface but for some reason it is not used inside the autogenerated code:
HAL_EXTI_Dx_EventInputConfig(EXTI_LINEx , EXTI_MODE_IT, ENABLE);
HAL_EXTI_EdgeConfig(EXTI_LINEx, EXTI_RISING_EDGE);
What do I need to do?
