Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
Need Forum Guidance? Click here

Search our FPGA Knowledge Articles here.
18498 Discussions

Nios II exception handling

jamie_m
Beginner
210 Views
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:
 

image (1).png

 
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
0 Kudos
1 Reply
Eliath_G_Intel
Employee
165 Views

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

 

Reply