I was trying to use the watchdog timer to reset the Blackfin whenever my code gets stuck. Basically I enable the watchdog timer and then kick it every 0.125s to prevent it from expiring.This seems to work okay except there are periodic calls to a function called TMK_ExceptionRestoreEntry which changes the watchdog timer's timeout to ~60s (WDOG_CNT is programmed to 0xB2D05E00 which is 60s at a 50Mhz clock).
I have re-read (most of) the VDK documentation and searched the VDK libraries to try and determine why this is being called but I can't find any reference to this function or the fact that the watchdog timer is "reserved" for use by the VDK.
I am using VisualDSP++ 5.0 Update 7 and a Blackfin bf536. I program the watchdog timer directly (i.e., I don't use the ADI_TMR_WDOG functions but instead just write directly to the WDOG_CNT, WDOG_CTL and WDOG_STAT registers).
What is the function TMK_ExceptionRestoreEntry doing and why is it modifying the watchdog timer?