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

Button 1-2 resets nRF51-DK

I am trying to set up a GPIO interrupt, and found that whenever Button 1 is pressed, if Button 1 or 2 is pressed later, the app will reset. This is even if there is any other buttons are pressed in between the two button presses. For example:

  • Pressing 1-1 resets the app
  • Pressing 1-2 resets the app
  • Pressing 1-3-4-3-3-4-2 resets the app

And I am not even setting GPIO button interrupt on Button 1 or 2. I am setting it up on Button 4. The application I am trying to add the button features to is based off the ble_app_uart example. Is this some kind of backdoor implemented by default in the nRF51-DK, or in the ble_app_uart example?

Parents
  • @rols: I have set a break point in app_error_handler() in app_error.c. However, when the system reset, the break point is never reached. As a matter of fact, that break point is greyed out when I enter debug mode.

    Another thing I tried to do is add the preprocessor DEBUG. This supposedly change the app_error_handler() behavior to trapping the application in an infinite loop. However, when I pressed the button as described, the app still reset. Do you have any other guesses what might be happening?

Reply
  • @rols: I have set a break point in app_error_handler() in app_error.c. However, when the system reset, the break point is never reached. As a matter of fact, that break point is greyed out when I enter debug mode.

    Another thing I tried to do is add the preprocessor DEBUG. This supposedly change the app_error_handler() behavior to trapping the application in an infinite loop. However, when I pressed the button as described, the app still reset. Do you have any other guesses what might be happening?

Children
No Data
Related