Error when executing ble_nus_c_string_send
I am trying to achieve data transmission by connecting two nRF52840s to each other through an NUS.
I scan for advertisements on one side, and if the Bluetooth ID matches the expected ID, I execute an NUS connection and execute ble_nus_c_string_send to send data.
I am debugging in a Segger SES environment.
Before executing ble_nus_c_string_send, I check if the connection is valid with if (m_ble_nus_c.conn_handle != BLE_CONN_HANDLE_INVALID) and then execute ble_nus_c_string_send, but the moment I execute ble_nus_c_string_send, the error handler is not executed and the Disassembly screen appears and the program stops.
Even if I do not change the source code, sometimes the Disassembly screen does not appear.
I am using SDK 17.0.0.
Do you know the cause?