Solved
I have some trouble with my st32cubeMX. I can not enable the EXTI on line 2, why ??
The enable boxed are there, but only for EXTI line 2, it's greyed out.

The enable boxed are there, but only for EXTI line 2, it's greyed out.

Hello @KHaug.1,
Thank you for your feedback,
Actually this is an expected behavior. When it comes to multicontext MCUs, you need to use "pin reservation" feature for GPIO pins. The interrupt will be available when you assign the used pin for EXTI 2 to CM4.
To do so, right click on the pin then select Pin Reservation and finally check Cortex-M4.
Please find below an example with pin PA2:
Regards,
Chahinez.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.