I use M0 of LPC4357 to create a project,
And use two interrupt timer0 and GPIO_4
In debug mode, only timer0 will trigger the interrupt regularly,
After GPIO4 received the signal, it did not execute the PIN_INT4_IRQHandler function.
The GPIO4 interrupt didn't work.
But use M4 to create a project and use the same settings, GPIO_4 will be triggered and enter PIN_INT4_IRQHandler,
The following is the setting of my GPIO_4.
Chip_SCU_PinMuxSet(0xF, 5, SCU_PINIO_FAST | SCU_MODE_FUNC4);
Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT,7,19);
/* Configure interrupt channel for the GPIO pin in SysCon block */
Chip_SCU_GPIOIntPinSel(4, 7, 19);
/* Configure channel interrupt as edge sensitive and falling edge interrupt */
Chip_PININT_ClearIntStatus(LPC_GPIO_PIN_INT, PININTCH(4));
Chip_PININT_SetPinModeEdge(LPC_GPIO_PIN_INT, PININTCH(4));
Chip_PININT_EnableIntLow(LPC_GPIO_PIN_INT, PININTCH(4));
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(PIN_INT4_IRQn, 8);
/* Enable interrupt in the NVIC */
NVIC_ClearPendingIRQ(PIN_INT4_IRQn);
NVIC_EnableIRQ(PIN_INT4_IRQn);