Hello,
I have faced a lot of issues that were causing hardfault on my device. I'm using FreeRTOS with nrf52. I was suspecting stack overflow but it wasn't so easy to identify. When i have introduced the bonding, the issue occured more often and by exploring the stack and going back into the upper address i think i found out what it is. Indeed, i think the soft device stack size is not enough. It has been set to 256 bytes in nrf_sdh_freertos.c file (NRF_BLE_FREERTOS_SDH_TASK_STACK)
I have tested by setting it at 512 bytes and all issues disappeared.
Am i right ? Is someone else facing the same issue ?
Regards,
Aurélien