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: Is it possible that enable/disable the watchdog multiple times?

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hello,

I use simplelink_cc2640r2_sdk_1_35_00_33.

In order to prevent the watchdog counting during advertising(refer to this post),

I want to disable the watchdog when my system sleeps and enable the watchdog when my system wakes up by IO interrupt or BLE connection.

I use Watchdog_open() and Watchdog_close() to enable and disable the watchdog, and I call this API in SimpleBLEPeripheral_taskFxn's infinite loop.

But I get a NULL return when the second times calling Watchdog_open().

How can I fix it?

Thanks.