cancel
Showing results for 
Search instead for 
Did you mean: 

Issue saving OpenThread network info in NVM on the STM32WB55.

YTalh.1
Associate II

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);
}

1 REPLY 1
Alessio Galliazzo
Associate II

Hi YTalh,

As far as it seems ST is no answering to Thread related question, did you find any solution?

With the latest lib package the call to SHCI_C2_FLASH_StoreData result in a SHCI_ERR_UNSUPPORTED_FEATURE that is quite strange seen that OpenThread specifications states that some data NEED to be saved in the NVM.