zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

Interrupt handling by Linux #16

Closed tpar closed 9 years ago

tpar commented 10 years ago

Hi,

I would like to thank you for this tutorial. It has proven to be very useful in getting familiarized with the Cyclone V SoC system. :) Really appreciate it :)

Now, I have instantiated an avalon memory mapped slave in the FPGA fabric and I am trying to read from it using the HPS. I have enabled interrupts for it. I have attached a picture of the Qsys system. I have enabled FPGA-HPS interrupts, by checking this setting while instantiating my HPS module in Qsys.

I am able to read from this slave using polling in my C application. However, I would like to have interrupts when I receive any data from this slave.

Would you be able to give me any suggestions as to how I can do this?

Any help will be greatly appreciated :)

Cheers

uart_sys

zhemao commented 10 years ago

I've never done this myself, but it seems that the simplest way to do this is to write a UIO driver.

https://www.kernel.org/doc/htmldocs/uio-howto/index.html

I'll take a look when I get home and see if I can implement a small examples using the SoCKit board.

tpar commented 10 years ago

Hey Howard, I tried doing the "Sending and Handling Interrupts" tutorial that you posted. I followed it exactly, but I am getting these warnings from the Qsys console. I have the exact same system that you have put on your forum..

image

If you could provide some insight into solving these issues it would be of great help to me :)

Cheers

zhemao commented 10 years ago

Yeah, I was confused by those warnings too, but it turned out to not be an issue. The example will still work. I will add some stuff to the post to tell everyone to ignore the warnings.

On Mon, Jun 23, 2014 at 8:46 PM, tpar notifications@github.com wrote:

Hey Howard, I tried doing the "Sending and Handling Interrupts" tutorial that you posted. I followed it exactly, but I am getting these warnings from the Qsys console. I have the exact same system that you have put on your forum..

[image: image] https://cloud.githubusercontent.com/assets/7676916/3366965/03c6abfc-fb52-11e3-9602-430fdf7716c6.png

If you could provide some insight into solving these issues it would be of great help to me :)

Cheers

— Reply to this email directly or view it on GitHub https://github.com/zhemao/zhemao.github.com/issues/16#issuecomment-46929180 .