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

NOT ADVERTISING AFTER BLE NUS AND BUTTONLESS DFU COMBINED

I have combined the two example codes one is buttonless dfu bootloader and another one is ble uart

after combined there is no error while building the code. but advertising is not done.

I posted my code

static void services_init(void)
{
uint32_t err_code;
ble_nus_init_t nus_init;
nrf_ble_qwr_init_t qwr_init = {0};

qwr_init.error_handler = nrf_qwr_error_handler;

err_code = nrf_ble_qwr_init(&m_qwr, &qwr_init);
APP_ERROR_CHECK(err_code);

ble_dfu_buttonless_init_t dfus_init =

{
.evt_handler = ble_dfu_evt_handler
};
err_code = ble_dfu_buttonless_init(&dfus_init);
APP_ERROR_CHECK(err_code);


// Initialize NUS.
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;

err_code = ble_nus_init(&m_nus, &nus_init);
APP_ERROR_CHECK(err_code);
}

if I commented ble nus part in the code it will advertise and working fine.

it was not advertising while combining both ble nus and dfu bootloader.

Please someone help me. Thanks in advance.

Parents Reply Children
No Data
Related