Intel: If Nios® II throws an exception, is there a way to find out what caused the exception?

Nios II

Category: Nios® II
Tools: Nios® II EDS
device:-


It is possible to register a handler that is called when an exception occurs.
It can be used by supporting the following two.

・Change of source code
Registering the Exception Handler and Creating the Exception Handler Function Body

・BSP editor settings
Check Advanced ⇒ hal ⇒ enable_instruction_related_exceptions in the Main tab

Reference information
https://www.altera.com//en_US/pdfs/literature/hb/nios2/n2sw_nii5v2gen2.pdf
(See The Nios II Instruction-Related Exception Handler entry.)



Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.