AnsweredAssumed Answered

Using PTA4 as an input in K64F only fires interrupt once

Question asked by David Karibe on Aug 24, 2018
Latest reply on Aug 29, 2018 by David Karibe

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.

Attachments

Outcomes