Forum Discussion

CAlex's avatar
CAlex
Icon for Contributor rankContributor
2 years ago

Issues on <alt_interrupt.h> header file

Hi,

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

I got the following error

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

Could you please tell me how to solve this problem?

reguards

10 Replies

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    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


  • CAlex's avatar
    CAlex
    Icon for Contributor rankContributor

    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"

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    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


    • CAlex's avatar
      CAlex
      Icon for Contributor rankContributor

      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.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    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


    • CAlex's avatar
      CAlex
      Icon for Contributor rankContributor

      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.

  • CAlex's avatar
    CAlex
    Icon for Contributor rankContributor

    Hi,

    Thank you, I'll start research on that.

    reguards.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    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


  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    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