Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

LAN91C1111 interrupt

Altera_Forum
Honored Contributor II
1,040 Views

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
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
337 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
337 Views

The IRQ no is assigned to 14 in Qsys, why it's -1 in system.h.

0 Kudos
Altera_Forum
Honored Contributor II
337 Views

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

0 Kudos
Reply