GPIO Interrupt in DSP IMX8MP #72298
Replies: 9 comments 37 replies
-
adding @LaurentiuM1234 he should be able to help with the interrupts. The interrupts can be tricky because of the irqsteer. |
Beta Was this translation helpful? Give feedback.
-
@mbahmani90 the address 0x32FC2000 is for irq_steer HDMI. |
Beta Was this translation helpful? Give feedback.
-
As you can see in the device tree the IRQ_STEER memory address is 0x30a80000:
|
Beta Was this translation helpful? Give feedback.
-
I tested with GPIO3_20, (IRQ 69 - master2_5) and when the interrupt occur I got the same error:
I also disabled the interrupt callback but again the error occurs.
|
Beta Was this translation helpful? Give feedback.
-
Hey, @mbahmani90! Would you mind also attaching the output of
(replace the board and sample with your own) EDIT:
|
Beta Was this translation helpful? Give feedback.
-
I will test it tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Interesting, I wonder why this works. I was expecting the build to fail since as far as I can tell the variable
and
|
Beta Was this translation helpful? Give feedback.
-
Hi, I logged the functions in Then I changed
Thanks |
Beta Was this translation helpful? Give feedback.
-
The problem was solved but I don't know how to clean the code. I tracked the code and I found that the error is coming from "irqsteer_isr_dispatcher" in "intc_nxp_irqsteer.c". then I logged the code and I found that "_sw_isr_table[table_idx].isr" has not been initialized. I defined a function ( test_isr ) and used "z_isr_install" to temporary initialized "_sw_isr_table[table_idx].isr" . However, it is hard coded. I would really appreciate it if you could help me in this regard.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Hope you are all well
I would like to enable interrupt for a gpio pin in DSP IMX8MP.
I use GPIO5_8 and when I configure this pin as output it works well. However, when I configure the pin as an external interrupt input it doesn't work and the callback function is not invoked.
code:
device tree:
dsp device tree:
Could you please explain if any thing else is required to do?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions