Hard Fault After BLE Connection in nRF52840DK FreeRTOS HRS Application Example

I am developing a BLE application on the nRF52 platform using FreeRTOS. My application involves custom BLE services and characteristics, and I am encountering a hard fault after a BLE connects after that it goes directly to the disconnection event. The hard fault occurs consistently, and I have added detailed logging to help diagnose the issue. The hard fault address is within the range of the linker ram_start and ram_size. I put a log file of the nrf52. I am trying to connect with my PC to nrf52. It gives same result when I try to connect with my phone.

I would appreciate any insights or suggestions on what might be causing this hard fault and how to resolve it. Specifically, I am looking for guidance on:

  1. Potential causes of hard faults after BLE disconnection events.
  2. Best practices for debugging hard faults in nRF52 applications.
  3. Any known issues or common pitfalls related to BLE and FreeRTOS on the nRF52 platform.

Thank you in advance for your help!

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX