This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AWR1642: Watchdog can not work in the demo program.

Part Number: AWR1642

Tool/software: Code Composer Studio

Hi TI mmwave experts,

I would like to add a watchdog in the demo program.  However, after several weeks' efforts, I found out the watchdog can not work and I can not find the root cause.

I have looked the sample code in the C:\ti\mmwave_sdk_02_01_00_04\packages\ti\drivers\watchdog and I tried to do the same way in the demo program.

Here below are the modification I made in the demo program:

1. Init watchdog right after MmwDemo_CLIInit() is called in the  MmwDemo_mssInitTask.

Here I added some code similar to the sample code:

Watchdog_init();

/* Initialize the Watchdog driver default parameters */
Watchdog_Params_init(&watchdogParams);

watchdogParams.resetMode = Watchdog_RESET_ON;
watchdogParams.debugStallMode = Watchdog_DEBUG_STALL_ON;
watchdogParams.windowSize = Watchdog_WINDOW_100_PERCENT;
watchdogParams.preloadValue = 0x0902; // ( ( 0x0902+1 ) * 2^13 )/200M=262.2ms
watchdogParams.socHandle = gMmwMssMCB.socHandle;
watchdogParams.esmHandle = esmHandle;

/* Open the Watchdog driver */
watchdogHandle = Watchdog_open(0, &watchdogParams);

......

2. Add Watchdog_clear in MmwDemo_mssCtrlPathTask:

Inside the while loop located in MmwDemo_mssCtrlPathTask, add Watchdog_clear(watchdogHandle) before Event_pend function call.

--------------------------------------

The above is the only modification I made for watchdog.  However, I found out the watchdog won't reset my EVM at all if the Watchdog_clear was removed.

Please, could any expert help to add the watchdog in the demo program?

My SDK is mmwave_sdk_02_01_00_04 and  EVM is AWR1642 ES2.0