Hi everyone.
I'm currently working with NRF SDK for Mesh v2.0.1, SDK v15
I'm adding light switch provisioner to light switch client example.
In file provisoner_helper.c, line 203, funtion dsm_devkey_add() return mesh error code 4.
In file nrf_error.h, error code 4 mean no memory, but nrf52832 chip has a lot of flash memory free.
Please help me figure out, and i'm so sorry about my english skill, because english isn't my primary language.
<t: 0>, mesh_softdevice_init.c, 112, Initializing SoftDevice... <t: 0>, mesh_softdevice_init.c, 77, Enabling BLE... <t: 2>, mesh_softdevice_init.c, 88, Ram base: 0x200032C8 <t: 578>, main.c, 385, Initializing and adding models <t: 592>, main.c, 592, Setup defaults: Adding keys, addresses, and bindings <t: 772>, provisioner_helper.c, 329, netkey_handle: 0 <t: 5647>, main.c, 640, Device UUID : 0059ABCDEFABCDEFACCDEFABCDEFABCD <t: 31983>, main.c, 467, Flash write complete <t: 32336>, main.c, 467, Flash write complete <t: 32338>, main.c, 296, Starting application ... <t: 32341>, main.c, 298, Provisoned Nodes: 0, Configured Nodes: 0 Next Address: 0x0100 <t: 32344>, main.c, 299, Dev key : E0A5DDAEEA7445572C14DD34638901B3 <t: 32347>, main.c, 300, Net key : 0DCFD132D6501AC4D7C72D508D3F6DCC <t: 32350>, main.c, 301, App key : 47060DF3F52367CBAA42F3C315DF902D <t: 32353>, main.c, 302, Press Button 1 to start provisioning and configuration process. <t: 184985>, main.c, 223, CLGT Button 0 pressed <t: 184988>, main.c, 178, Check network state ... <t: 184990>, main.c, 196, Waiting for Client node to be provisioned ... <t: 189754>, provisioner_helper.c, 282, Scanning For Unprovisioned Devices <t: 207791>, provisioner_helper.c, 144, UUID seen: 0059ABCDEFABCDEFACCDEFABCDEFABCD <t: 207795>, provisioner_helper.c, 95, UUID filter matched <t: 208931>, provisioner_helper.c, 259, Provisioning link established <t: 222479>, provisioner_helper.c, 254, Static authentication data provided <t: 299787>, provisioner_helper.c, 192, Provisioning completed received <t: 299790>, provisioner_helper.c, 197, Adding device address, and device keys <t: 299794>, app_error_weak.c, 105, Mesh error 4 at 0x000398BF (C:\Users\huybk\Dropbox\nRF5_SDK_15.0.0_a53641a\nrf5_SDK_for_Mesh_v2.0.1_src\examples\light_switch\provisioner\src\provisioner_helper.c:203)