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

ble connection issue

HI,all!

Recently my nrf51822 device encountered a tough issue,the detials are:

My device connected to an android app, which has some bugs about ble connection so the connection is not stable and secure. And because of that, my device's code run out of contorl:

cannot go back to the while circulation in main function, but still can enter rtc and gpiote interrupt. So I think the code might be stuck in some loop function.

So my question is: Will some inlegal behaviours about ble connection cause the code be stuck in someplace? If so, how to advoid this?

I am using sd6.0 and sdk 5_2. Thank you!

Parents
  • The flag is 'DEBUG', ie if you compile with DEBUG set, as with any debug build, then the behaviour on the default handler is to turn all the LEDs on and loop. In anything where DEBUG is not defined, ie release mode, you get a system reset.

    And as I say often - everyone should put a breakpoint in the app_error_handler() routine as a matter of course.

Reply
  • The flag is 'DEBUG', ie if you compile with DEBUG set, as with any debug build, then the behaviour on the default handler is to turn all the LEDs on and loop. In anything where DEBUG is not defined, ie release mode, you get a system reset.

    And as I say often - everyone should put a breakpoint in the app_error_handler() routine as a matter of course.

Children
No Data
Related