Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNios II exception handler
Hi, I'm using Nios II and experiencing some strange behaviors. 1. Sometimes the system gets stuck. 2. The system resets. 3. In debug mode - the software get stuck after going to a trap. ...
Altera_Forum
Honored Contributor
13 years agoI found out that it is needed to build the hardware with the advanced exception options on.
In the SOPC builder I checked the following in Advanced features: Exception Checking: 1. Illegal instructions 2. Missaligned memory access. 3. Extra exception information. After building the new hardware, the handler was triggered when trying to write on missaligned address or trying to execute function from address 0x0. Now I want to try and test trap handling. How can I trigger a trap instruction to be handled with the handler I implemented?