Forum Discussion

jamie_m's avatar
jamie_m
Icon for New Contributor rankNew Contributor
6 years ago

Nios II exception handling

I'm running into an occasional fault on the Nios processor implemented on MAX 10 device that leads to an infinite trap loop:
The above is from file alt_instruction_exception_entry.c. There is a variable named "cause" that should hold the cause of the exception, however, in my code I see the following:

How do I get it to compile with this definition turned on so that I can get the exception info loaded into the cause variable?
Thanks,
Jamie

1 Reply

  • Eliath_G_Intel's avatar
    Eliath_G_Intel
    Icon for Occasional Contributor rankOccasional Contributor

    Hello Jamie,

    First of all, thank you for reaching us,

    regarding your issue/request, please refer to page 33 section 3.2.7.3 Run Time Stack Checking And Exception Debugging of the next document.

    Regards,

    -Eliath Guzman