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

how to isolate the unwanted bluetooth signal during debug?

I was trying to debug the mesh sdk code, but it always end to sleep_forever, so I suspect it's disturbed by some unwanted bluetooth signals

Parents
  • Hi,

    Other signals (including other bluetooth signals) does not lead to the behavior that you see.

    Ending up in sleep_forever() means you have hit an assert. You should have gotten a log message telling what the error is, if you have enabled logging. Another way to find out what exactly the assert is is to put a breakpoint in app_error_fault_handler and read the id, pc and info values when it hits.

    Please note that if the SoftDevice is enabled you will most likely get an assert when you resume running after a pause. For instance, if resuming after having stopped on a breakpoint. The reason for this is the SoftDevice will not be able to meet timing requirements and therefore the internal timing checks will fail, giving an assert within the SoftDevice.

    Regards,
    Terje

  • Hi, Terje,

    Yeah, I do have breakpoints in app_error_fault_handler, though, there are too many NRF_MESH_ASSERT..

    So SoftDevice make that happen? how you Nordic guys do debugging in such situation?

    Can Real-time debugging solve this issue? if yes, how to set breakpoints in Thread mode or lower priority interrupts?

    Thanks & Regards

Reply Children
Related