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.

CC2541 using PM2 and Watchdog

Hello,

I just activated the watchdog in my BLE Application.
Enabling WD in main(), feeding WD in osal_start_system().

Seems to work! But I'm not sure if I'm safe with this solution.
Watchdog interval is set to ~1s (couting from 0 to 32768 using 32k osc).

A watchdog reset occurs, if PowerMode2 is entered with a timeout timer >32768 right?

In hal_sleep.c I find following lines:

#define MAX_SLEEP_TIME 16711680
...
// it is, so limit to max allowed sleep time (~510s)
 halSleepSetTimer( sleepTimer, MAX_SLEEP_TIME );

From what I understand, I should decrease MAX_SLEEP_TIME to <32768, right?
An alternative solution would be, to trigger the watchdog via user defined osal_event, with osal_start_timer(..., <1000)? But maybe the priority of the osal_events is to low, to feed the watchdog reliable.


Do I'm worring to much? I'm not sure if I understood the powersaving mechanism. What is your suggestion?

greetings!