I am getting error -
t: 17532>, app_error_weak.c, 108, Mesh assert at 0x0002CF9E (:0)
I debugged it, it took me to the flash_manager.c - line 254 which is
NRF_MESH_ASSERT(p_manager->config.p_area[i].metadata.page_index == i);
Any help is appreciated.
I would like to point out, i am not getting this error on all dev kits, on one of the dev boards, it got provisioned.
Could you please double check this by running addr2line with your mesh assert, like shown here.
yeah, the output matches
nRF_SDK/nrf5SDKforMeshv310src/mesh/core/src/flash_manager.c:254 (discriminator 1)
and it goes away if i set PERSISTENT STORAGE to 0 but we need to use flash.. is this a bug?
1. No this doesnt happe with the light switch example, i have simply added my lightness model in place of the generic on off, (haven't handled the bindings yet) but i just want the server to receive the client commands.
2. is generic on off required for lightness to work?? (i haven't implemented the bindings)
Have you taken a look at this documentation? It seems that the light lightness actual state is bound to an instance of the Generic OnOff state. See the mesh model specifications for more info regarding this.
are you saying i need generic on off along with lightness for lightness server to receive any messages?
Yes, I believe that may be the case.
okay, and what about the persistent storage issue?