Good morning,
I'm using MIMXRT1170-EVK board and I'd like use NMI interrupt with SW7 WAKEUP key.
I
I have imported SDK example "igpio_input_interrupt_cm7" so I have tried to modify the code adding
IOMUXC_SetPinMux(
IOMUXC_WAKEUP_DIG_NMI_GLUE_NMI,
0U);
IOMUXC_SetPinConfig(
IOMUXC_WAKEUP_DIG_NMI_GLUE_NMI,
0x00U);
but when I press the key SW7 it doesn't work.
Obviously I have changed
BOARD_USER_BUTTON_IRQ_HANDLER NMI_Handler from GPIO13_Combined_0_31_IRQHandler
What is the correct way to set NMI interrupt using SW7 key ?
Best regards
Solved! Go to Solution.
Hi @Nexus76
Continuing our internal discussion, Please try the attached code (previous code have small error)
The NMI interrupt is high level sensitive. So if you are using our EVK , you will see that the interrupt will continuously trigger, unless you press the wake button. The wake button is active low.
Also for testing you can also use UART. If you are debugging by SWD, you may seen that the debug session stops after enabling the NMI muxing. I presume this is because the NMI is continuously triggered, halting all processor operations.
Many thanks!
Diego.
Thanks Diego, it works.
Hi @Nexus76
Continuing our internal discussion, Please try the attached code (previous code have small error)
The NMI interrupt is high level sensitive. So if you are using our EVK , you will see that the interrupt will continuously trigger, unless you press the wake button. The wake button is active low.
Also for testing you can also use UART. If you are debugging by SWD, you may seen that the debug session stops after enabling the NMI muxing. I presume this is because the NMI is continuously triggered, halting all processor operations.
Many thanks!
Diego.