This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NO TX PACKET error after trying to add vs uuid

Hello,

I'm following this BLE services tutorial. I have added the functions required to create a service.

In the our_service_init

void our_service_init(ble_os_t * p_our_service)

{

uint32_t   err_code;
ble_uuid_t        service_uuid;
ble_uuid128_t     base_uuid = BLE_UUID_OUR_BASE_UUID;
service_uuid.uuid = BLE_UUID_OUR_SERVICE;
err_code = sd_ble_uuid_vs_add(&base_uuid, &service_uuid.type);
APP_ERROR_CHECK(err_code); 

err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                    &service_uuid,
                                    &p_our_service->service_handle);
APP_ERROR_CHECK(err_code);    

}

When calling sd_ble_uuid_vs_addI get error 4 (BLE_ERROR_NO_TX_PACKETS).

I started from scratch by using the template project in the SDK 14.0.0 and the SD 5.0.0-2.alpha with nRF52840.

I made sure to call the services_init()before gatt_init() because it made more sense !. Below is the fonctions call list in the main()

    log_init();
timers_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();
gap_params_init();
services_init();     
gatt_init();     
advertising_init();
conn_params_init();
peer_manager_init();

Would love to have some ideas or a solution on how to solves this.

Thank you

Parents Reply Children
No Data
Related