• 0
HasanWAVE

Interrupt not working

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @HasanWAVE,

Welcome to the Digilent Forums!

Make sure that you are using the digilent board files. The board files become the default setting and correctly configure the zynq processor.  Here is a forum thread that discusses using interrupts with the zynq processor. 

best regards,

Jon

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

Hi @HasanWAVE,

I haven't worked with more than 5-6 interrupts in a microblaze/zynq project.  I would suggest reaching out to Xilinx support for the correct drive API to be using.

best regards,

Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now