Nios® V Processor Software Developer Handbook

ID 743810
Date 10/06/2025
Public
Document Table of Contents

11.3.2.3.2. Registering ECC Exception Handler

The HAL API function alt_ecc_exception_register( ) registers the ECC exception handler. When you register the ECC exception handler, it replaces the default EBREAK.

The prototype is as follows:

void alt_ecc_exception_register(alt_u32 handler);

The handler argument is a pointer to the ECC exception handler.

To use alt_ecc_exception_register( ), include the following header file:

#include "sys/alt_ecc_exception.h"