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
Usage Overview
API Sequence
To use the ESM driver to report various error conditions:
Example Usage
Include the below file to access the APIs
Instance Open Example
gEsmHandle =
ESM_open(CONFIG_ESM0, &esmParams);
Instance Close Example
API
APIs for ESM