Forum Discussion

THanr's avatar
THanr
Icon for New Contributor rankNew Contributor
4 years ago

NIOS II exception handler

I'm trying to register an exception handler with the HAL to handle anything other than an IRQ, so that would be misaligned memory access, divide by zero, undefined opcode etc.. Is there any sample code available? I've having no luck with alt_instruction_exception_register() or even intercepting any exceptions in the crt0 handler.

3 Replies