Errors

Normative

The error codes a conformant watchdog driver reports. Development errors are only raised when development error reporting is enabled (see enable_development_error_reporting in Configuration Reference). The watchdog driver defines no runtime errors. Governed by CHI-WDG-MUST-06 and CHI-WDG-MUST-07 in Wdg — Requirements.

Development errors

When development error reporting is enabled, each API detects the conditions below and raises the listed error via LogM_Report with development-error level. Wdg_SetMode additionally returns E_NOT_OK when it detects a development error.

Development errors by API

API

Condition

Error id

Wdg_Init

WdgDrv already initialized

WDG_DEVERR_DRIVER_STATE

Wdg_Init

configPtr is not NULL_PTR

WDG_DEVERR_PARAM_POINTER

Wdg_SetMode / Wdg_UpdateTimeout / Wdg_FeedHw

WdgDrv not initialized

WDG_DEVERR_DRIVER_STATE

Wdg_SetMode

mode not supported

WDG_DEVERR_PARAM_MODE

Wdg_UpdateTimeout

timeout above the configured maximum for the current mode

WDG_DEVERR_PARAM_TIMEOUT

Development error code group

Development error type

Defines

WDG_DEVERR_DRIVER_STATE (1U)

API service used in wrong context (e.g. module not initialized).

WDG_DEVERR_PARAM_TIMEOUT (2U)

Specified timeout value exceeds maximum timeout in the configuration

WDG_DEVERR_PARAM_POINTER (3U)

API service called with NULL pointer.

WDG_DEVERR_PARAM_MODE (4U)

API service called with invalid (unsupported) mode parameter

Available via: WdgIf_DriverTypes.h. Vendor-specific error definitions MUST be provided via Wdg.h instead.