These two options in nrf_mesh_config_app are arbitrary for me if I don't understand how they should be sized.
From the documentation of the MESH SDK 3.2.0:
ACCESS_FLASH_PAGE_COUNT: The number of pages of flash storage reserved for the access layer for persistent data storage.
DSM_FLASH_PAGE_COUNT: Number of flash pages reserved for the DSM storage.
Specifically on the hal.h, there is a #define PAGE_SIZE (0x1000) for the nRF52, which we are using, so I guess each flash page is 4096 bytes.
But is there a formula or rule of thumb to how much memory or how many pages the Access Layer and the Device State Manager needs?
Also, I can program a client with a higher number of access or dsm flash pages than the default (1), but if I reprogram with a different number after one boot, it gives me a mesh assert, that I suspect is because memory was allocated previously on runtime in the first boot and if that memory is changed, some verification fails and the mesh assert is triggered. Am I on the right track?
Thanks,
Rúben