STM32WB: Thread network goes down after a few minutes in BLE Thread Dynamic Mode but BLE stays active and works fine.
I created a custom application using the code from the BLE_THREAD_DYN example and the v10.0 FW BLE_THREAD_DYN stack. The BLE works fine but the thread stack goes down after a few minutes. The main differences between my code and the example is that I converted the code to use FreeRTOS but I preserved most of the logic and structure.
Upon initial system power on, the stacks both initialize and go up just fine with the device meshing with my existing thread network. However, after a few minutes the device disconnects from the thread network and the node never reconnects but the BLE remains active.
I'm troubleshooting the issue but any breadcrumbs on how to converge on the problem more quickly would be much appreciated.
Update 3/3/2021 @ 1:50PM
Within the initialization of both stacks, I commented out the BLE initialization and only ran with the Thread stack active using the v10.0 BLE_THREAD_DYN firmware. The issue persisted with the Thread stack going down after a few minutes -- the amount of minutes seems to be variable so can't seem to determine a pattern.
static void APPE_SysEvtReadyProcessing(void) {
/* Traces channel initialization */
TL_TRACES_Init();
// APP_BLE_Init_Dyn_1();
APP_THREAD_Init_Dyn_1();
// APP_BLE_Init_Dyn_2();
APP_THREAD_Init_Dyn_2();
UTIL_LPM_SetOffMode(1U << CFG_LPM_APP, UTIL_LPM_ENABLE);
}Continuing with the above, I flashed the THREAD_FTD stack while preserving the code and keeping the BLE uninitialized. Over the course of 30 minutes, the issue did not persist which means to me something is wrong with the v10.0 BLE_THREAD_DYN firmware that causes the Thread stack to drop after a few minutes, regardless if the BLE stack is initialized.
Update 3/3/2021 @ 4:30PM
After 3 hours, the Thread stack is still up, meshing, and transmitting as expected using the THREAD_FTD stack. The issue seems to be with the BLE_THREAD_DYN firmware.
