Forum Discussion
AAlas3
Occasional Contributor
7 years agoNios II and interrupt problem
Hey 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 in...
Ahmed_H_Intel1
Frequent Contributor
7 years agoHi,
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,