Error when executing ble_nus_c_string_send

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?

Parents
  • Hello,

    Please don't use nRF5 SDK v17.0.0, please update to v17.1.0. There are no major changes, but there are various bug fixes you want. Please be aware that you can't single step code, so you can only set a breakpoint, and then re-start application.

    In terms of what the problem is, please specify the error code that ble_nus_c_string_send() return.

    Kenneth

Reply
  • Hello,

    Please don't use nRF5 SDK v17.0.0, please update to v17.1.0. There are no major changes, but there are various bug fixes you want. Please be aware that you can't single step code, so you can only set a breakpoint, and then re-start application.

    In terms of what the problem is, please specify the error code that ble_nus_c_string_send() return.

    Kenneth

Children
No Data
Related