Unable to generate GPIO Interrupt on GPIO10 : i.MXRT1172

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to generate GPIO Interrupt on GPIO10 : i.MXRT1172

4,853 次查看
satish_claysol
Contributor II

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

 

标签 (1)
标记 (3)
0 项奖励
回复
6 回复数

4,756 次查看
satish_claysol
Contributor II

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

 

 

0 项奖励
回复

4,746 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, as is mentioned on the RM, yes.

Best regards,
Pavel

0 项奖励
回复

4,709 次查看
satish_claysol
Contributor II

I am able to get this working.

 

Thank  you very much for the support and solution

 

Satish

 

0 项奖励
回复

4,816 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

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.

Pavel_Hernandez_0-1712348611172.png

What is the board EVK that you have? or is a custom board??

Best regards,
Pavel

0 项奖励
回复

4,765 次查看
satish_claysol
Contributor II
It is a custom board
0 项奖励
回复

4,756 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, sorry for the late response, I was asking for more details with my team. 

With the code attached, I can trigger SD_B1_00 interrupt successfully by short R1890 to GND.

Best regards,
Pavel

 

0 项奖励
回复