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

Reply
  • 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

Children
Related