Forum Discussion
THanr
New Contributor
4 years agoNIOS 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
- EBERLAZARE_I_Intel
Regular Contributor
Hi,
Unfortunately, we don't have the exact examples on exception handler.
Have you refer to our Nios II Software Developer Handbook?:
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii52006.pdf
- KennyT_altera
Super Contributor
Any further queries?
- EBERLAZARE_I_Intel
Regular Contributor
Hi,
Any further questions from your side?