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
  • Hi,

    The most typical reason for a reset is that an error check has caught an error, and reset the device (which is the default behavior of the error handler when not using a debug build). You should debug the code to see what is going on. I recommend starting with defining DEBUG for your project and seeing if it ends up in an error handler. Another possibility is if you are using a WDT and are not feeding it.

Reply
  • Hi,

    The most typical reason for a reset is that an error check has caught an error, and reset the device (which is the default behavior of the error handler when not using a debug build). You should debug the code to see what is going on. I recommend starting with defining DEBUG for your project and seeing if it ends up in an error handler. Another possibility is if you are using a WDT and are not feeding it.

Children
Related