Error management module initializes and handles the errors that are generated by hardware and provides an option for you to customize these handlers. In hardware, there are two error status registers which hold the type of error that occurred. Also any error can be enabled/disabled from interrupting the PMU MicroBlaze. For each of the errors, you can decide what action should be taken when the error occurs. The possible scenarios would be one or a combination of the following choices:
- Asserting of
PS_ERROR_OUT
signal on the device - Generation of an interrupt to the PMU processor
- Generation of a system reset (SRST)
- Generation of a power-on-reset (POR)
PMU firmware provides APIs to register custom error handlers or assign a default
(SRST/PoR/PS error out) action in response to an Error. When PMU firmware starts, it
sets an error action as interrupt to PMU for some of the errors and PS error out for
others as per the ErrorTable[]
structure defined in
xpfw_error_manager.c.