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.

Situation with Interrupts

Altera_Forum
Honored Contributor II
798 Views

Hallo, 

 

I have a strange Problem with INterrupts.  

 

I have a single Thread application which after initialisation of several parameters, registers and enables an Interrupt and then proceeds to periodically do some operation in a while loop.  

 

Since today morning without any warning the software is acting up. Once the interrupt is enabled, the program does not execute any of the lines that come after. But the interrupt has been successfully enabled and I have set up breakpoints in the ISR to see if it is being executed.  

 

What can cause such a situation?? Enabling on interrupt stops the rest of the program. Have any of you had a similar problem.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
81 Views

Hallo again, 

 

Some more information.. If I disable this interrupt. Then everything else runs smoothly.. .. But I need this interrupt since it is integral to the specification of my device... Do you guys have any idea what might be the potential causes for such a behaviour?
Altera_Forum
Honored Contributor II
81 Views

Does your ISR actually request the hardware remove the IRQ? 

Is the hardware requesting another interrupt faster than the code can actually service the previos request. 

 

Breakpointcode code that uses interrupts is not necessarily useful. 

Even printf()s can slow the code down too much. 

Often it is necessary to write trace entries into an array - and look at it later.
Reply