This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Softdevice NRF_FAULT_ID_SD_ASSERT during GDB debug session

Hi, I found my debug session keeps reset due to this error (code jump into app_error_fault_handler) when I stepped through my code. This happens at random places. I'm not my code can cause this issue. What is this error? How can I fix or avoid it?

I'm testing my code on 52840DK with s140 (nrf52840_5.0.0-2.alpha_softdevice).

Thank you, Min-Ching

  • You can't debug with the softdevice running, at least not if it's actually doing anything like either advertising or in connection. It has very strict timing requirements and as soon as you halt it in the debugger it will fail internal checks when it gets going again.

    You need to debug either with RTT or just putting one breakpoint in and looking at the registers at that point only or , if you are on an nRF52 chip, look at the blog posts about Monitor Mode Debugging which will let you debug with the softdevice running.

Related