2022-04-13 11:54 PM
Usually I find this information in the pin mapping description, e.g. for the device STM32L4A6AG I would have assumed to find it in section 4 "Pinouts and pin description", where all other stuff like SPI, I2C, FMC, EVENTOUT, TIM etc. are described.
Is there no pin interrupt enabled on that chip? Of course there are, but which one? What did I miss?
Solved! Go to Solution.
2022-04-14 04:18 AM
Hello NRoth.1,
I would like to welcome you to the ST community. Please check out the reference manual RM0351 and the description of NVIC and EXTI. You can set any GPIO pin for interrupt. There is up to 41 event/interrupt requests available from which 26 is configurable. The GPIOs are connected to 16 configurable interrupt/event lines EXTI0 to EXTI15. So you can configure which pin on that line will generate the interrupt. For example for line EXTI0 you can choose pin PA0, PB0 and others. Of course not all pins must be available on the device. Other interrupt lines are used for peripherals.
Please click on Select as Best if my reply fully answered your question. This will help other users with the same problem to find the solution faster!
2022-04-14 04:18 AM
Hello NRoth.1,
I would like to welcome you to the ST community. Please check out the reference manual RM0351 and the description of NVIC and EXTI. You can set any GPIO pin for interrupt. There is up to 41 event/interrupt requests available from which 26 is configurable. The GPIOs are connected to 16 configurable interrupt/event lines EXTI0 to EXTI15. So you can configure which pin on that line will generate the interrupt. For example for line EXTI0 you can choose pin PA0, PB0 and others. Of course not all pins must be available on the device. Other interrupt lines are used for peripherals.
Please click on Select as Best if my reply fully answered your question. This will help other users with the same problem to find the solution faster!
2022-04-14 04:23 AM
Hi Petr,
Thank you for your quick answer. Ah, okey. Well this is also an explanation, why it is hard to find :smiling_face_with_smiling_eyes:
Best regards and have a nice day.
2022-04-14 04:32 AM
I am glad I could help. You could also find useful this video available here. Which shows how to use the EXTI with HAL driver in STM32CubeIDE, but could be useful even when you are using different IDE.