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
Hi Pavel
Thanks for the support. I will try it out and let you know.
But I have a question:
Instead of configuring SD_B1_00 as GPIO10 IO3 (IOMUXC_GPIO_SD_B1_00_GPIO10_IO03),
it is configured as GPIO_MUX4 IO03 (IOMUXC_GPIO_SD_B1_00_GPIO_MUX4_IO03)
Also interrupt is configured as GPIO4_Combined_0_15_IRQHandler.
So is GPIO_MUX4_IO03 same as GPIO4 PIN 3 ?
Regards
Satish
Hello, as is mentioned on the RM, yes.
Best regards,
Pavel
I am able to get this working.
Thank you very much for the support and solution
Satish
Hello, my name is Pavel, and I will be supporting your case, I reviewed the example and modify with the same GPIO and PIN, but I´m not sure if my test was fine, the PIN is not available if used by the port. Let me research more information with my team.
What is the board EVK that you have? or is a custom board??
Best regards,
Pavel