Hi Kewai,
It seems that you are making all the correct steps to get a GPIO interrupt.
Maybe you need to clean and rebuild?
Or maybe project is somehow corrupted so a new project might fix things.
Have you done updates?
Attached is my project that I tested using KDS_3.0.0 and KSDK_1.3.0 fo frdm-k64f Freedom board.
I setup the SW2 GPIO (PTC6) as my input gpio interrupt. I had to enable pull-up for the gpio as the switch doesn't have a pull-up populated. So my interrupt is set for negative edge.
The project is using SRAM for the vector table.
In Cpu.c the gpio isr is being added to the SRAM vector table with following call:
OSA_InstallIntHandler(PORTC_IRQn, gpio1_PORTC_IRQHandler);
I can set a breakpoint in the Event.c handler:
void gpio1_PORTC_IRQHandler(void)
{
/* Clear interrupt flag.*/
PORT_HAL_ClearPortIntFlag(PORTC_BASE_PTR);
/* Write your code here ... */
}
When i press SW2 I get the interrupt.
Hope this helps.
Regards,
David