Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThe internal interrupt controller of Nios does not allow interrupt preemption. You will need to upgrade to external interrupt controller and add the Altera Vectored Interrupt Controller (VIC), which is a Nios peripheral that allow better interrupt handling including interrupt masking.
Refer to section 32: https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_embedded_ip.pdf With the VIC, you can set interrupt B to be non-maskable so that it can take over the lower priority interrupt (interrupt A). Which means that interrupt B ISR can be entered even when interrupt A is being serviced.