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.

IWR1443BOOST: Implementing self-reset function using watchdog timer

Part Number: IWR1443BOOST
Other Parts Discussed in Thread: IWR1443

Dear;

I'm now designing a level-meter based on iwr1443boost and would like to implement reboot or self-reset function triggered from CLI interface.

I prepared CLI-command and the corresponding code attached below.

But iwr1443 does not stop or restart when this CLI command is fed and accepted. It seems that the watchdog is not working.

As I looked through the driver code, there's two drivers, watchdog_xxx and watchdogRTI_xxx.

Should I use the latter one? and how to use it instead. Please inform in detail.

**

static int32_t MmwDemo_CLIReset (int32_t argc, char* argv[])
{
Watchdog_Handle handle;
Watchdog_Params params;

/* Initializa the Watchdog driver */
Watchdog_init();

/* Initialize the Watchdog driver default parameters */
params.resetMode = Watchdog_RESET_ON; //reset-mode
params.callbackFxn = NULL; //no entry in reset-mode
params.debugStallMode = Watchdog_DEBUG_STALL_OFF; //no stall at int.
params.windowSize = Watchdog_WINDOW_100_PERCENT; //no window
params.preloadValue = 0xFF; //max value(4095)
params.socHandle = NULL;
params.esmHandle = NULL;

handle = Watchdog_open(0, &params); //watchdog start
if (!handle) {
CLI_write ("Watchdog not opened!!");
}
CLI_write_host ("done\n");

while(1);
}

Regards,

Kaneko.