This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF52840 ble_App_uart_c example hangs in first start and debug mode (SDK 17.1.0)

I am using ble_app_uart_c example to scan nrf beacons. Facing strange issue with debugger.

Enabled RTT and disable UART Logs, when i connect debugger and put break point after ble_stack_init() call then debugger get struck at SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));

But if disconnect debugger and do hard reset things are fine. 

What could be the reason behind this issue?

Parents
  • Hi,

    Not sure exactly where you put your break-point. But the SoftDevice has real-time requirements, so if you halt it you will end up with an assert quite fast. For debugging when running the sd, I would recommend that you mainly use logging.

Reply
  • Hi,

    Not sure exactly where you put your break-point. But the SoftDevice has real-time requirements, so if you halt it you will end up with an assert quite fast. For debugging when running the sd, I would recommend that you mainly use logging.

Children
No Data
Related