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

ble_nus_data_send error

Hi, 

Recently, I've found a reset issue with my device by ble_nus_data_send error when ble is working.

But the error code is 0x3401(Please, refer the picture). What does that mean? Is there any other header with the definitions than nrf_error.h?

Before handling the error, I need to understand why that error happened and what kind of errors it is.

Thank you.

[code for ble_nus_data_send]

    if(m_conn_handle != BLE_CONN_HANDLE_INVALID)
    {
        // uint32_t err_code;
        do
        {
            err_code_test = ble_nus_data_send(&m_nusdata_array, &lengthm_conn_handle);
            if((err_code_test != NRF_ERROR_INVALID_STATE) &&
               (err_code_test != NRF_ERROR_RESOURCES) &&
               (err_code_test != NRF_ERROR_NOT_FOUND))
            {
                APP_ERROR_CHECK(err_code_test);
            }
        } while(err_code_test == NRF_ERROR_RESOURCES && block);
    }
[exception call stack captured]
Parents
  • It's here, in ble_gatts.h, 0x3401:

    #define BLE_ERROR_GATTS_SYS_ATTR_MISSING    (NRF_GATTS_ERR_BASE + 0x001) /**< System Attributes missing. */
    
    * @retval ::BLE_ERROR_GATTS_SYS_ATTR_MISSING System attributes missing, use @ref sd_ble_gatts_sys_attr_set to set them to a known value.
    

    Maybe there is a full decoded list in the docs, but usually I scroll back through the nested definitions; not so helpful but maybe a starting point

Reply
  • It's here, in ble_gatts.h, 0x3401:

    #define BLE_ERROR_GATTS_SYS_ATTR_MISSING    (NRF_GATTS_ERR_BASE + 0x001) /**< System Attributes missing. */
    
    * @retval ::BLE_ERROR_GATTS_SYS_ATTR_MISSING System attributes missing, use @ref sd_ble_gatts_sys_attr_set to set them to a known value.
    

    Maybe there is a full decoded list in the docs, but usually I scroll back through the nested definitions; not so helpful but maybe a starting point

Children
Related