Forum Discussion
Altera_Forum
Honored Contributor
10 years agoWell, this is the fastest I have ever answered my own question.. haha.
At first, I only enabled bit 0 in the ienable register. I was watching the status register while debugging and noticed that the PIE bit was already set to '1'. Because of this, I did not worry about writing to it to enable it. Turns out, even though that bit was already set to '1', it was not actually allowing exceptions to occur. I had to make sure I set those bits regardless of if they were already enabled before. Seems as if they are already set, it shouldn't matter but apparently it does. Very interesting. So, if your exceptions are not being handled, make sure you are performing the following instructions. movi r8, 1 wrctl ienable, r8 wrctl status, r8 Thanks, Matt