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

Ble_app_Uart hangs after sometime program run

Dear nordic,

I check your ble app uart example in debug mode. After some time it goes to the NRF_BREAKPOINT_COND. nothing do in the eaxmple just loaded only why this going to NRF_BREAKPOINT_COND. I need some help from your side.

Parents
  • Hi,

    The UART examples will attempt to enter System OFF mode (deep sleep, see sleep_mode_enter) when advertising times out after 3 minutes. However, in debug interface mode, the chip will only emulated system OFF mode, hence the error code. You can disable advertisement timeout by setting APP_ADV_DURATION to 0 and change the advertisement flag from BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE to BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. 

Reply
  • Hi,

    The UART examples will attempt to enter System OFF mode (deep sleep, see sleep_mode_enter) when advertising times out after 3 minutes. However, in debug interface mode, the chip will only emulated system OFF mode, hence the error code. You can disable advertisement timeout by setting APP_ADV_DURATION to 0 and change the advertisement flag from BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE to BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. 

Children
No Data
Related