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.

CC2530: WDT in END device not cleared

Part Number: CC2530

Hi,

We are trying to implement the Watchdog timer in the end device code (ZStack 3.0.1).

We are using 

WatchDogEnable( WDTIMX );

to enable the watchdog timer in main function

and for clearing the counter we are doing the following:

in Osal_run_system() after every task.

    activeTaskID = idx;
    events = (tasksArr[idx])( idx, events );
    activeTaskID = TASK_NO_TASK;
    
    WDCTL |= (0xA0); <--------added
    WDCTL ^= (0xF0);<--------added

Problem: It is getting reset because of watchdog timer.

Questions:

1) Is this the correct way and place to clear the WD counter?

2) Where can we see the WDT counter value (Which register)?

3) Does Operating the device in debug mode with breakpoints cause the WDT to expire?