MIMXRT1166 GPIO Interrupt - Missing Something In Setup?

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

MIMXRT1166 GPIO Interrupt - Missing Something In Setup?

1,019 次查看
I0nizer
Contributor II

     I'm trying to set up a GPIO rising edge interrupt that will set a flag upon firing. I am using the MCUXpresso Config Tool and made sure to set the pin interrupt to rising edge on the pin and also enabled the combined GPIO interrupt in the CM7_NVIC peripheral. I used the handler template and tried to follow the example project I saw as best as I could. 

     However, whenever the interrupt fires I get stuck in some infinite loop of the program and cannot communicate with the MCU. It doesn't put it in an unrecoverable state, but I do have to either power cycle or re-flash the MCU. Is there anything I am missing from the setup that could be interfering with my work?

0 项奖励
回复
1 回复

954 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @I0nizer,

Further information would be needed to pinpoint the cause of the unescapable infinite loop, like where in the code this infinite loop occurs, as well as the whole ConfigTools setup you did. However, I recommend looking at the implementation that the example project "evkmimxrt1160_igpio_input_interrupt_cm7" does, since this already does the implementation of what you are trying to achieve.

BR,
Edwin.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2253377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMIMXRT1166%20GPIO%20%E4%B8%AD%E6%96%AD%20-%20%E8%AE%BE%E7%BD%AE%E4%B8%AD%E9%81%97%E6%BC%8F%E4%BA%86%E4%BB%80%E4%B9%88%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E8%AE%BE%E7%BD%AE%E4%B8%80%E4%B8%AA%20GPIO%20%E4%B8%8A%E5%8D%87%E6%B2%BF%E4%B8%AD%E6%96%AD%EF%BC%8C%E5%AE%83%E5%B0%86%E5%9C%A8%E8%A7%A6%E5%8F%91%E6%97%B6%E8%AE%BE%E7%BD%AE%E4%B8%80%E4%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