Hi, to repeat the problem, you need to press button 3 and then button 2 on the board with an example of dimming_client, after that the board with dimming_server stops responding.
And one more case:
If you press button 1 on the dimming_client five times, then the board with dimming_server will also stop responding.
How to fix this problem?
Did you provision the examples via the provisioner board or via the nRF Mesh app? Also, it's probably a good idea to adjust the RAM base to the value shown in the first log you uploaded.
The first log was obtained from a modified dimming_server example, I added proxy support there. This example was provisioned using the nRF Mesh app. Second log from the original example. Provisioned with a board.
How to adjust the RAM base?
Right-click on the Project in Segger Embedded Studios -> Edit Options ->change to the Common configuration -> Linker tab -> Section Placement macros -> change the RAM_START value. See if that helps at all. If not, let me know & I will take a closer look.
After changing the RAM_START value, the problem did not disappear.
0> <t: 0>, main.c, 490, ----- BLE Mesh Light Switch Server Demo ----- 0> <t: 566>, main.c, 417, Initializing and adding models 0> <t: 5454>, main.c, 547, Device UUID : 005955BB00000000A7123154A5976C18 0> <t: 550>, main.c, 408, Successfully provisioned 0> <t: 552>, main.c, 412, Node Address: 0x0103 0> <t: 348254>, app_level.c, 513, Delta SET: delta: 10000 delay: 100 tt: 2000 0> <t: 348258>, app_level.c, 516, Delta SET: initial-level: 0 present-level: 0 target-level: 10000 0> <t: 351539>, app_level.c, 270, Selecting minimum tick interval 0> <t: 351542>, app_level.c, 280, timeout_rtc_ticks: 33 ticks 0> <t: 467073>, app_level.c, 513, Delta SET: delta: 0 delay: 100 tt: 2000 0> <t: 467076>, app_level.c, 516, Delta SET: initial-level: 10000 present-level: 10000 target-level: 10000
Inside the function a_transition_start, in the calculation of transition_step_us the division into zero occurs.Please tell me the best way to fix this? github.com/.../app_level.c
I have just tested this with three nrf52832 dev kits & I was unfortunately not able to replicate the issue. I provisioned with the light switch provisioner example instead of the nRF Mesh app. Could it maybe be something to do with the nRF Mesh application? Did you follow the documentation under "Provisioning with the nRF Mesh app" here?
Please look at the static void function a_transition_start (void * p_data). If delta is zero, division by zero occurs. In the logs you can see that the delta becomes zero. Do not you have it?