What is a Channel Watchdog? How can the user application monitor correct function of the firmware operation?
Each Communication Channel in the Dual Port Memory (DPM) offers a dedicated watchdog handling, allowing the netX firmware to monitor the correct processing of the host application and vice versa.
Two 32bit data fields in each DPM communication channel are used for the watchdog handling:
The handling itself simply consist of a copy function which must be cyclically executed by the host application.
The host application has to copy the content from the ulHostWatchdog field to the ulDeviceWatchdog field.
By default, the watchdog is disabled. The first copy automatically activates the watchdog.
From this point the host application has to repeate the copy function once during the configured watchdog time.
The watchdog time can be configured using mailbox packets HIL_SET_WATCHDOG_TIME_REQ, HIL_GET_WATCHDOG_TIME_REQ
If the application does not process the copy and the watchdog time expires, a watchdog hit will be signaled to respective Firmware Communication Channel.
The watchdog handling can be done by
Please refer to the DPM Manual and the cifX API Manual for further information.