AM64x MCU+ SDK  08.05.00
ESM

The Error Signaling Module (ESM) driver collects and reports the various error conditions on the microcontroller. The error condition is categorized based on a severity level. Error response is then generated based on the category of the error. Possible error responses include a low priority interrupt, high priority interrupt, and an external pin action.

Features Supported

  • Configuration of error number.
  • Registering ESM notifier.

SysConfig Features

Note
It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
  • Selection of ESM instances.
  • Option to configure the error number, priority level, enable failure influence and call-back function.
  • ESM register notifier/ ESM de register notifier API integration with SYSCFG
  • Based on above parameters, the SysConfig generated code does ESM instance parameter configuration and registers the notifier as part of Drivers_open and Drivers_close functions.

Features NOT Supported

  • NA

Usage Overview

API Sequence

To use the ESM driver to report various error conditions:

Example Usage

Include the below file to access the APIs

#include <drivers/esm.h>

Instance Open Example

ESM_OpenParams esmParams;
ESM_Params_init(&esmParams); /* Initialize ESM parameters */
gEsmHandle = ESM_open(CONFIG_ESM0, &esmParams);
DebugP_assert(gEsmHandle != NULL);

Instance Close Example

ESM_close(gEsmHandle);

API

APIs for ESM

ESM_OpenParams
ESM Open Parameters.
Definition: drivers/esm/v1/esm.h:139
ESM_close
void ESM_close(ESM_Handle handle)
The function closes a ESM peripheral specified by the ESM handle.
DebugP_assert
#define DebugP_assert(expression)
Function to call for assert check.
Definition: DebugP.h:159
ESM_Params_init
static void ESM_Params_init(ESM_OpenParams *openPrms)
Definition: drivers/esm/v1/esm.h:389
esm.h
ESM_open
ESM_Handle ESM_open(uint32_t index, ESM_OpenParams *params)
Opens a ESM object with the index and parameters specified, and returns a ESM_Handle.