Forum Discussion
Hi,
thank you for your reply.
The attached is the makefile I use.
And yes I can compile and run the application if I don't use any of <alt_interrupt.h> related libs.
Could please you tell me more about the FPGA IRQ to HPS?
I built the system of a timer(100ms with)-->Avalon mm bridge -->f2h lw bridge
with the irq---(0)--->f2h IRQ so the irq should be 72 in GIC.
I wrote a C code to use mmap to map the timer through the avalon and tryed to control it with (pTimer +1)which is the register of (start,stop,cont,ITO)
I also put the .dtb file and .sof file into the board but now I'm get a little confused. Here is the questions I have:
1. Do I need to do the preload settings for this change? or can I just change the FPGA fabric since I didn't change the HPS design.
2. Do I need to write the kernal module to make the IRQ registered?
3. How can I register the interrupts ?
4.What kind of environment do I need to use the hwlib for Altera soft IP and HPS hard core IP(I assume the <alt_interrupt.h>is a HPS hard core IP lib).
And thank you for kind help.
I appreciate that.
reguards.