I’m using CC2540 with BLE stack 1.4.0 in my project. The CC2540 Is always ON and send advertising to establish connection when paired device is in range. The issue is that once a month, the CC2540 RF Core stop sending advertising. Is it a known issue?
I saw in other posts that people had the same issue as me with stopping advertising but with CC2541 instead. The solution was to upgrade BLE stack to 1.4.1 or change "#define HAL_SLEEP_ADJ_TICKS" from 25 to 35.
For CC2540, this value is already set to 35. See extract from hal_sleep.c below:
#if defined( CC2541) || defined( CC2541S )
#define HAL_SLEEP_ADJ_TICKS 25 // default sleep adjustment, in 32kHz ticks
#else // CC2540
#define HAL_SLEEP_ADJ_TICKS 35 // default sleep adjustment, in 32kHz ticks
#endif // CC2541 || CC2541S
Should I increase the value to more than 35? Which value should I use? Does anyone try different values?