Nucleo32 with STM32F303K8 crashes when setting PA2 as Interrupt and triggering it

I don't know the answer.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.