Nios® V Processor Software Developer Handbook

ID 743810
Date 10/02/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.4.4.1. Modifying the Exception Handler

In some very special cases, you can modify the existing HAL exception handler routine or to insert your own interrupt handler for the Nios® V processor. However, in most cases you need not modify the interrupt handler routines for the Nios® V processor for your software application.

Consider the following common issues and important points before you modify or replace the HAL-provided exception handler:

  • Interrupt vector address: The interrupt vector address for each Nios® V processor is set by the Board Support Package (BSP) files. You can modify it during BSP configuration in the BSP Editor.
  • Modifying the exception handler: The HAL-provided exception handler is robust, reliable, and efficient. Modifying the exception handler could break the HAL-supplied interrupt handling API, and cause problems in the device drivers for other peripherals that use interrupts, such as the UART and the JTAG UART.

You can modify the behavior of the exception handler to increase overall performance.