Skip to main content
YTalh.1
Associate II
February 1, 2022
Question

Issue saving OpenThread network info in NVM on the STM32WB55.

  • February 1, 2022
  • 1 reply
  • 852 views

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

This topic has been closed for replies.

1 reply

Alessio Galliazzo
Associate II
March 14, 2023

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.