Question
Issue saving OpenThread network info in NVM on the STM32WB55.
I have been trying to have the STM32WB55 save the OpenThread network information after joining the network, so that it can automatically join it upon power cycle.
After joining the network through the commissioning process, I call SHCI_C2_FLASH_StoreData(THREAD_IP), but it doesn't seem to save the information in flash memory. I show the code snippet that calls the function in the Joiner handler below:
static void APP_THREAD_JoinerHandler(otError OtError, void *pContext)
{
if (OtError == OT_ERROR_NONE)
{
SHCI_C2_FLASH_StoreData(THREAD_IP);
OtError = otThreadSetEnabled(NULL, true);
if (OtError != OT_ERROR_NONE)
{
APP_THREAD_Error(ERR_THREAD_START, OtError);
}
APP_DBG("JOIN SUCCESS!");
}
else
APP_THREAD_Error(ERR_THREAD_JOINER_CB, OtError);
}