FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5931 Discussions

DE0-NANO-SOC no interrupt handle

LacoN
Beginner
729 Views

Hi,

i liked to get an interrupt from a pushbutton and handle it in userspace via a kernel modul. 

To begin with, i have an Linux distro done with yocto and the kernel 5.5. I compiled my kernel modul also with yocto. I have loaded the goldenreference out from quartus via usb-blaster. I enabled the bridges in U-Boot. I could register my kernelmodul. But when i cat /proc/interrupts i could not see any interrupts occurred? 

Inside my kernelmodul i tried to read all 4 register from the leds on the board and printed them.

Please have a look on my screenshots. 

Question is simply how can i get that running or where is the error. Do i have to do some device tree appendings?

0 Kudos
1 Reply
EBERLAZARE_I_Intel
693 Views

Hi,

Apologize for the delay in response, regarding the interrupt handler, you can try our tutorial with ARM processor interrupts to handle KEY presses below:

ftp://ftp.intel.com/pub/fpgaup/pub/Intel_Material/16.1/Tutorials/Linux.pdf

 

Also, similar discussion on the issue can be found below:

https://community.intel.com/t5/Programmable-Devices/Cyclone-V-Interrupt-Handling/td-p/160759

https://electronics.stackexchange.com/questions/345271/altera-cyclone-v-linux-fpga-interrupt-handling

0 Kudos
Reply