Jump to content
  • 0

Interrupt not working


HasanWAVE

Question

Hi,

I have a ARTY Z7 digilent board with ZYNQ 7020 chip. I am trying to have a simple interrupt running, that when I turn on the SW0, it causes an interrupt and prints "HelloWorld". I have followed the examples given in https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scugic/examples/xscugic_example.c

and https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/gpio/examples/xgpio_intr_tapp_example.c. But I am not sure where I am missing something. This is my design board diagram I have made on Vivado. 

 

Could anyone help me where I might be doing wrong. Is my diagram of Vivado correct ?

Regards,

Hasan

Intr_TEST.PNG

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Hi Jon,

Thank you. It has worked. The problem what I was doing was I was using the AXI Interrupt controller block in Vivado and using the SCUGIC driver in the software.

My question right now is, if I have more than 16 interrupts then I will have to use the AXI Interrupt Controller. What is the driver API which I would have to use for that ?

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers

I am following the above link examples in a lot of my development.

Regards,

Hasan

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...