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

cccd enables to report errors

Hi,

I'd like to set up cccd here, but test the error,


In the routine

nRF5_SDK_15.3.0_59ac345 nRF5_SDK_15.3.0_59ac345.0_59ac345.s.ble_peripheral?ble_app_uart/pca10040-s132-arm5_no_packs-ble_app_uart_pca10040_s132.uvprojx

How do I make a cccd in ?

Kind regards. Peter.Min

Parents
  • Hello,

    The log says that in your main.c file there is an APP_ERROR_CHECK(err_code); with err_code = 0x3401 (=13313). 

    Can you check what function call that is? Remember to debug into the functions to see what call inside that function that returned 0x3401.

    0x3401 is BLE_ERROR_GATTS_SYS_ATTR_MISSING (defined in ble_gatts.h).

    This is usually returned if you try to send a notification, but notifications aren't enabled. Did you enable notifications before calling ble_nus_data_send()? 

    What does your ble_evt_handler() look like?

    Do you handle the event: BLE_GATTS_EVT_SYS_ATTR_MISSING? If so, what do you do in that event?

    BR,

    Edvin

Reply
  • Hello,

    The log says that in your main.c file there is an APP_ERROR_CHECK(err_code); with err_code = 0x3401 (=13313). 

    Can you check what function call that is? Remember to debug into the functions to see what call inside that function that returned 0x3401.

    0x3401 is BLE_ERROR_GATTS_SYS_ATTR_MISSING (defined in ble_gatts.h).

    This is usually returned if you try to send a notification, but notifications aren't enabled. Did you enable notifications before calling ble_nus_data_send()? 

    What does your ble_evt_handler() look like?

    Do you handle the event: BLE_GATTS_EVT_SYS_ATTR_MISSING? If so, what do you do in that event?

    BR,

    Edvin

Children
Related