I want to use the switch SW3 connected to PTA4 in the FRDM-K64F board. I configured the pin as a GPIO and enabled interrupts. I also disabled the NMI function in the flash configuration field as suggested in answers to other similar questions. I am using MCUXpresso IDE and KSDK. I have attached my project here. I have two ADC inputs triggered using PDB, although I doubt that causes the problem. I can debug the code up until the first interrupt happens, but after clearing interrupts, no more interrupts happen from PTA4. The other switch, PTC6 works OK with exactly the same interrupts code.
Can anyone kindly help me figure out why this is happening. Meanwhile, I will try to create a baremetal project with only this switch and see.