Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

LAN91C1111 interrupt

I am migrating my old quartus and nios project to latest version 13.0. I got a problem now ,The ethernet communication is not working. I found the IRQ number become to -1 in system.h. but I assigned it to 14 in QSYS. Does anybody have same problem?

# define LAN91C111_IRQ -1# define LAN91C111_IRQ_INTERRUPT_CONTROLLER_ID -1

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I changed IRQ number in system.h as below, it works. but this is not a correct way, It will overwrite if i re-generate BSP.

    # define LAN91C111_IRQ 14

    # define LAN91C111_IRQ_INTERRUPT_CONTROLLER_ID 0
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you should not change IRQ no from system. h go to the SOPC or Qsys assign required IRQ and generate the system, then it will reflect in your IRQ in system .h, system.h is just reflection of your hardware

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    After Assigning IRQ (14) , u need to generate system through QSYS, then only it will reflect in your system.h