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

nRF52840 doesn't advertise

Hi

I am working on nrf52840, try to create a service,so i follow the tutorial, but i got a problem. The DK doesn't advertise, when I debug it, then it will jump into this place,as shown in picture.

Does anybody know what to do with this? Thanks in advance.

HW: nRF52840

SW: SDK_15.0.0

       Softdevice s140_nrf52_v6.0.0

Environment: MDK5, win10

Parents
  • Hello,

    This function is the error handler. It means an assert doesn't pass in your code (for example APP_ERROR_CHECK()) 

    you should check the Program Counter (PC) contained in the 'pc' variable (check a few line higher on your screenshot.
    Then take a look at the .map file to see where the failing instruction comes from.

    Otherwise try to put some breakpoints in your program to see at which point it fails (which function doesn't return).

  • Hi, Cyril

    Thank you for your answer. I am not very understand what you said about 'pc', but I tried to use some breakpoints and found the exact place where the failing instruction comes from.It's about the RAM address. When I changed, it works. Thank you very much.

Reply Children
Related