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

Main function starts again after BLE disconnection

Hi,

I'm using nRF51822 to develop our products. I found an interesting problem on our PCB. After I disconnected our PCB from central device, the main function starts from the beginning for every minute. I don't understand what happened. Can anyone explain why? Thank you!

Parents Reply Children
  • Hi,

    You need some way to debug and preferably also get logs from your device. Do you not have that? Since you are able to program it, I assume you have a debugger that you can connect to it?

    It is not clear to me whether the issue with not getting any logging is general, or if you only have problems getting logs at the same time when you see the reset? Can you clarify?

    If you want to use RTT, you need a J-link debugger. You can, for instance, use the nRF51 DK's debug out port (see DK user guide). No matter what the root cause of this problem is, setting up a proper way to debug is the sensible first step. Then you need to find out why the reset occurs, typically by seeing what happens immediately before it. You can of course also use UART logging. 

Related