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

ble_app_uart NRF_BREAKPOINT_COND SDK_15.0.0

Hi,

I'm using nRF52832 with SDK 15.0.0 base on ble_app_uart example. But I meet a very strange problem. The project couldn't run after I program, no matter I use IAR or nRFgo to program. it runs to the NRF_BREAKPOINT_COND when I debug it. What reason would lead to this problem?

Thanks.

Parents
  • I suspect the new error you are referring to is due to the timeout of the device after a given amount of time, thus the advertising will stop and the device go to sleep.

     Inside advertising_init(..) in the main file, the following line will set the timeout time (in units of 10 millisecond):

    init.config.ble_adv_fast_timeout  = APP_ADV_DURATION;

    When the timeout happens, and the advertising stops, a BLE_ADV_EVT_IDLE event will happen. Then the device will be put to sleep, and you wont be able to connect to it.

    You can solve this by setting the APP_ADV_DURATION define equal to a really large number, e.g. 3600 00 (1 hour).

    Best regards, Simon

Reply
  • I suspect the new error you are referring to is due to the timeout of the device after a given amount of time, thus the advertising will stop and the device go to sleep.

     Inside advertising_init(..) in the main file, the following line will set the timeout time (in units of 10 millisecond):

    init.config.ble_adv_fast_timeout  = APP_ADV_DURATION;

    When the timeout happens, and the advertising stops, a BLE_ADV_EVT_IDLE event will happen. Then the device will be put to sleep, and you wont be able to connect to it.

    You can solve this by setting the APP_ADV_DURATION define equal to a really large number, e.g. 3600 00 (1 hour).

    Best regards, Simon

Children
No Data
Related