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.

RTOS/CC2640R2F: Watchdog Implementation

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640, CC2650, SIMPLELINK-CC2640R2-SDK,

Tool/software: TI-RTOS

Hello,

Currently working with CC2640 platform and I have a quick question as to whether the watchdog function has been fully implemented and tested.

If so I would like to know what the best reference would be to implement it correctly.

I am currently trying the solution mention in this thread: https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/408338/1448244

I'm currently using latest rtos library.

Thanks in advance for any help on this subject,

-AdamZ

  • Hello Adam,

    For CC2650/CC2640 my advice would be to follow Christin's guidance in this post: e2e.ti.com/.../1787836

    Your post does mention CC2640R2F. If you are using this part, please see the watchdog driver example in the SIMPLELINK-CC2640R2-SDK.

    Best wishes
  • Hi Adam,

        I implemented Watchdog at CC2640R2F. Just call this Watchdog_Init() at Initialization. 

    void Watchdog_Init(void)
    {
        Watchdog_Params params;    
            
        Watchdog_init();
        
        Watchdog_Params_init(&params);
        params.resetMode = Watchdog_RESET_ON;
        WatchdogHandle = Watchdog_open(Board_WATCHDOG0, &params);
            
        if (WatchdogHandle == NULL) {
            /* Error opening Watchdog */
            while (1);
        }
    }

    Call Watchdog_clear at your main RTOS Task inside the for loop and just below the Event_pend(). To test if the Watchdog will trigger a system  reset put a while(1); loop somewhere in your code.

    - kel