Skip to main content
truhann
Associate
October 23, 2024
Solved

LmHandlerNvmDataStore not called?

  • October 23, 2024
  • 1 reply
  • 578 views

Using the latest SM32Cube_FW_WL_V1.3.0 and the lorawan middleware.

For MAC v1.0.4 the devnonce and other parameters needs to get persisted to the flash.  From what I see this happens when LmHandlerNvmDataStore is called.

But from the looks of it, this is never called?  I assume I am missing a file somewhere!?

Any idea where and when this function is getting called?

 

Best answer by STTwo-32

Hello @truhann 

The "LmHandlerNvmDataStore" is called to start the NVM Data store process. It is usually called on the "StoreContext" function of the "lora_app.c" function. This function is executed will calling for the execution of the task "CFG_SEQ_Task_LoRaStoreContextEvent". This task is called for example on the EXTI interrupt for the button B3 on the LORAWAN-End_Node example. It may change depending on the application.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
November 1, 2024

Hello @truhann 

The "LmHandlerNvmDataStore" is called to start the NVM Data store process. It is usually called on the "StoreContext" function of the "lora_app.c" function. This function is executed will calling for the execution of the task "CFG_SEQ_Task_LoRaStoreContextEvent". This task is called for example on the EXTI interrupt for the button B3 on the LORAWAN-End_Node example. It may change depending on the application.

Best Regards.

STTwo-32