Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Beginner
629 Views

Why FPGA to HPS Interrupts is only working for Switches?

Hello.

 

I have catched the IRQ 41 on Linux, but it's only working when I set the output to a switch peripheral.

 

I have built the device-tree and I have created a Kernel module which reads the interrupts and performs an action. In my case I want to receive an IRQ, read the value, negate it, and then, send it back to the FPGA.

In the Qsys I assigned the IRQ 0 to the bus 0. And in the pin planner i'm assigning a pin for a switch. It's working.

 

But... When I want to send a signal from a key or from an FPGA generated signal, it doesn't catch it and I don't know why.

qsys.PNG

This is the result when I use a SW. I also can see on the oscilloscope the output from the HPS, because I amsending it back to the FPGA and outputting it through GPIO.

linux.PNG

 

0 Kudos
3 Replies
22 Views

Hi,

 

Are you using Arria 10?

 

The FPGA-HPS-Interrupt document can be referred here, page 1010:

 

Regards.

 

0 Kudos
Beginner
22 Views

No, I am using a Cyclone V SoC-FPGA.

0 Kudos
22 Views

Hi,

 

For Cyclone V SoC-FPGA, refer here:

 

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/cyclone-v/cv_54027.pdf

Jump to Interrupt page 28-5 (3421/3501 in pdf) onward.

0 Kudos