I am trying to generate a rising edge interrupt on PIN GPIO_SD_B1_00
I am following SDK example "evkmimxrt1170_igpio_input_interrupt_cm7" by modifying only the PORT and PIN Numbers.
IOMUX is set as
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_00_GPIO10_IO03, 0U); // GPIO10, PIN 3
GPIO is modified as
BOARD_USER_BUTTON_GPIO GPIO10
BOARD_USER_BUTTON_GPIO_PIN (03U)
BOARD_USER_BUTTON_IRQ CM7_GPIO2_3_IRQn
BOARD_USER_BUTTON_IRQ_HANDLER CM7_GPIO2_3_IRQHandler
A switch is connected to PIN GPIO_SD_B1_00
No interrupt is detected on toggling of switch. Reading the PIN returns correct status
Have a doubt on the IRQ Number and Handler
As per Table 4.2 of Data sheet, ( Page 78) the common IRQ for GPIO9 is 99
As per SDK configuration IRQ 99 is defined as CM7_GPIO2_3_IRQn
CM7_GPIO2_3_IRQn = 99, /**< CM7_GPIO2,CM7_GPIO3 interrupt */
The corresponding Handler is
CM7_GPIO2_3_IRQHandler, // 115: CM7_GPIO2,CM7_GPIO3 interrupt
However this IRQ is never triggered
Please confirm if this is the right IRQ number and handler for GPIO9
Any other suggestions as to why IRG is not generated is requested