Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Nios II and interrupt problem

AAlas3
New Contributor I
433 Views

Nios_Interrupt.pngHey guys, I am new to Nios system design and I am facing problem regarding interrupts, I wrote a code as specified in HAL API interrupt example in Nios II software handbook but when I activate interrupt the processor doesn't go to ISR but it just freeze and I couldn't back to main function, above is a screenshot of my C code in eclipse.

I am using DE2-115 board

0 Kudos
1 Reply
Ahmed_H_Intel1
Employee
145 Views

Hi,

BTW you didn't include the system.h header file, which is very important to define the components Bases. Plus I recommend to include PIO register header file and the replace the IORD and IOWR into the While(1) function with the following:

IORD_ALTERA_AVALON_PIO_DATA

IOWR_ALTERA_AVALON_PIO_DATA

 

Regards,

 

Reply