Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
All support for Intel NUC 7 - 13 systems has transitioned to ASUS. Read latest update.
20590 Discussions

Issues on <alt_interrupt.h> header file

CAlex
New Contributor II
791 Views

Hi,

 

I include the <alt_interrupt.h> in order to use the interrupt on HPS form fpga,

I got the following error

CAlex_0-1678765676373.png

which I believe from this block in <alt_interrupt.h>:

CAlex_1-1678765723200.png

Could you please tell me how to solve this problem?

 

reguards

 

 

0 Kudos
10 Replies
aikeu
Employee
767 Views

Hi CAlex,


I am not able to see the error from the pictures(blur) that you have attached.

Can show me the error again?


Thanks.

Regards,

Aik Eu


0 Kudos
CAlex
New Contributor II
762 Views

Ok,It's on the first picture if wouldn't mind click it.

It says: on src/hwmgr/alt_interrupt.c(951) error: undefined reference to "__cs3_interrupt_vector"

0 Kudos
aikeu
Employee
741 Views

Hi CAlex,


May I know what document which you follow to build your project?

Anyway, I think it might be related to you make file:

In the Makefile change "CROSS_COMPILE := arm-none-eabi-" to "CROSS_COMPILE := arm-altera-eabi-".


Thanks.

Regards,

Aik Eu


0 Kudos
CAlex
New Contributor II
736 Views

Hi,

I followed the DE10 standard User Guide in SOC FPGA chapter,

I copied the example's makefile and made some other rules to link all the resources in my Makefile document. 

 

And could I ask is there any compile tools need to be download to use altera- eabi?

 

Thank you for your reply.

 

reguards.

0 Kudos
aikeu
Employee
705 Views

Hi CAlex,


I was looking into this documention previously which relates to some related software tools involved in the steps:

https://github.com/arktur04/cyclone-v-baremetal


Anyway I suggest you can follow the newer build steps in refering to the cyclone V timer example which consider the alt_interrupt.h (Running Cyclone V Timer Example):

https://www.rocketboards.org/foswiki/Documentation/HWLib


The example code as below:

https://github.com/altera-opensource/intel-socfpga-hwlib/blob/master/examples/CVAV/Altera-SoCFPGA-HardwareLib-Timer-CV-GNU/main.c


Thanks.

Regards,

Aik Eu


0 Kudos
CAlex
New Contributor II
701 Views

Hi,

I read throught the link you gave and tried a little but it seems didn't work on Liunx.

The example you gave I assume is with the GHRD yet can't work as well.

 

Could you provide timer interrupt examples work on linux?

I didn't find any on intenet.

 

Thank you for help

reguards.

 

0 Kudos
aikeu
Employee
651 Views

Hi CAlex,


The alt_interrupt only meant for baremetal application.

As for any linux example I think this is the one you will be looking into:

https://github.com/altera-opensource/linux-refdesigns/blob/master/pio-interrupt/gpio_interrupt.c


Thanks.

Regards,

Aik Eu


0 Kudos
CAlex
New Contributor II
639 Views

Hi,

Thank you, I'll start research on that.

 

reguards.

0 Kudos
aikeu
Employee
625 Views

Hi CAlex,


I will close this thread if no further question at the moment. Do consider re-open a new thread if there is.


Thanks.

Regards,

Aik Eu


0 Kudos
aikeu
Employee
558 Views

Hi CAlex,


I am closing this thread for now. Feel free to provive a good feedback If you happened to receive a survey.


Thanks.

Regards,

Aik Eu


0 Kudos
Reply