NRF52832s132_nrf52_6.1.1_softdevice.hexSDK: 15.2.0MESH SDK: 3.1.0
When calling mesh_stack_device_reset() we often experience a hangup from a SD assert.
mesh_stack_device_reset -> hal_device_reset -> app_error_fault_handler:NRF_FAULT_ID_SD_ASSERTPC: 0x24506
How do we avoid this assert?
You should add the define DEBUG in your Preprocessor(Project -> Edit Options -> Preprocessor -> Preprocessor Definitions), then add a breakpoint on app_error_fault_handler() to see which error you get. You will see which error you get and which function is returning this error.
yes, i have provided that information:
You should get one of these values in a log or in a debug window. Can you check?
The function app_error_fault_handler is defined as follows:
app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
Here are the parameter values:id = 1 (NRF_FAULT_ID_SD_ASSERT)pc = 0x24506info = 0
Where should I look for the error code you reference?
Are there any restrictions or calling conditions on function mesh_stack_device_reset()?In the function there is the following comment:
/* We have to do this elaborate dance to avoid nested * calls to bearer event. It should be possible to call this * function from within a bearer_event_process context. */