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

52840dk Segger debug exception when using softdevices.

Debugging in Segger serial example from mesh

It runs and responds to commands, but when paused or hits breakpoint - single step or continue gets to address 0xa60, continue logs the message:

app_error_weak.c,   96, Softdevice assert: 154516:0

Are there some required debugger setting whne debugging with softdevices?

I was debugging sample project without the softdevice without problems - possibly there is another issue.

Parents
  • Hello,

    If you break during the debug session after the SoftDevice has started, it will assert later. This is because the SoftDevice will miss some time critical events where it was supposed to use the radio. So you can use breakpoints to see what's happening for a few steps, but when you step out of that function (or possibly before) then the softdevice will assert. 

    What you should do is to use the breakpoints to check certain things that you want to check, and then you must reset the application.

    Best regards,

    Edvin

Reply
  • Hello,

    If you break during the debug session after the SoftDevice has started, it will assert later. This is because the SoftDevice will miss some time critical events where it was supposed to use the radio. So you can use breakpoints to see what's happening for a few steps, but when you step out of that function (or possibly before) then the softdevice will assert. 

    What you should do is to use the breakpoints to check certain things that you want to check, and then you must reset the application.

    Best regards,

    Edvin

Children
No Data
Related