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
  • Is there a way to disable this hardfault handler? I will have a lot of debugging of non radio related code - our app interface, and restarting app after each breakpoint would be painful. I need to implement comm with a host over UART, and would like to do it with softdevice in place. Other option would be creating an app without softdevice, but this will take some time.

    Piotr

Reply
  • Is there a way to disable this hardfault handler? I will have a lot of debugging of non radio related code - our app interface, and restarting app after each breakpoint would be painful. I need to implement comm with a host over UART, and would like to do it with softdevice in place. Other option would be creating an app without softdevice, but this will take some time.

    Piotr

Children
  • Your application will not work if the softdevice asserts. The connection will break. Either way, you should just try to not start advertising or connecting if you want to step in your code. If that isn't viable, then you must use the logging tools. 

    There is something called Monitor Mode Debugging. I have not tested this myself, but that may be something you want to look into if you need to step through parts of your code. It is a bit of work to get it up and running, but if you need it, I guess you can try.

Related