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

Multilink central NUS - app_uart_put failed for index 0x0001.

Hi

I wanted to add NUS_C service to multilink central example. I have nRF52-DK (PCA10040) evaluation boards at central and peripheral side. It compiles without errors but when I run it, I get the following message on debug window:

<info> app: Multilink NUS example started.
<info> app: Start scanning for device name Nordic_UART.
<info> app: Connecting to target 1A9590808BF7
<info> app: Connection 0x0 established, starting DB discovery.
<info> app: Start scanning for device name Nordic_UART.
<info> app: NUS Service discovered on conn_handle 0x0
<info> app: Before enable the tx notification
<info> app: Connected to device with Nordic UART Service.


<error> app: app_uart_put failed for index 0x0001.
<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\nRF5_SDK_15.3.0_59ac345\examples\ble_central\ble_app_multilink_central\main.c:220
PC at: 0x0002CCB7
<error> app: End of error report

The error is thrown byret_val = app_uart_put(p_data[i]); within the ble_nus_chars_received_uart_print() function that is called by the BLE_NUS_C_EVT_NUS_TX_EVT event. I followed this link which asks to modify something to ble_evt_dispatch() but since I'm using SDK15 and SoftDevice 132, I am not very sure how to do that and if it's causing the issue. 

At the peripheral side, I have only one device with ble_app_uart running that continuously sends packets of 3 bytes - 1,2,3. I have checked the operation of peripheral using nrf tools app on mobile, the data is being sent as expected.

Any help in this regard is highly appreciated.

Regards,

Vignesh

Related