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.

CC3235MODASF: Watchdog multiple callback

Part Number: CC3235MODASF
Other Parts Discussed in Thread: CC3200, CC3235SF, SYSBIOS

Hi, 

I do not understand fully the behavior of the watchdog 

I configure it like:

const WatchdogCC32XX_HWAttrs watchdogCC3220SHWAttrs[CC3220SF_LAUNCHXL_WATCHDOGCOUNT] = {
    {
        .baseAddr = WDT_BASE,
        .intNum = INT_WDT,
        .intPriority = (~0),
        .reloadValue = (uint32_t)80000000*30 /* 30 second period at default CPU clock freq, first call trigs warning callback, second call trigs reset */
    }
};

    Watchdog_init();

    Watchdog_Params_init(&params);

    params.resetMode = Watchdog_RESET_ON;
    params.callbackFxn = (Watchdog_Callback) &WatchdogCallback;
    params.debugStallMode = Watchdog_DEBUG_STALL_ON;

    handle = Watchdog_open(CC3220SF_LAUNCHXL_WATCHDOG0, &params);
    if (handle == NULL)
    {
        ERROR_PRINT("Could not open watchdog");
        return -1;
     }

Then just to validate that it works fine I just start, init the watchdog and wait 30sec.


11:27:51 Wait watchdog
11:28:21 First callback, followed by many callbacks until restart
11:28:51 Restart

My questions:

Why is the callback called multiple times? I'm quite sure it was not the case previously. 

I am using:

CC3235modasf with sp_4.7.0.3_3.1.0.5_3.1.0.26