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

beacon + DFU + buttonless

Hi
I trying to develop a module in the 52810. I want use te ble_app_beacon and add a DFU buttonless. I was able to add the DFU, but when i was to integrate the buttonless part i got an error during the initialisation. I followed the dfu buttonless tutorial.


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

I got 0x04 error after the init.

Parents
  • Hi,

    Error code 0x04 is NRF_ERROR_NO_MEM, and it can come from several API calls inside of ble_dfu_buttonless_init(). You could do a debug session, and check for each function call returning an err_code there, which one returns the error.

    Most likely you have not configured the SoftDevice correctly for the number of vendor specific UUIDs needed, leading to the sd_ble_uuid_vs_add() call to fail. If that is the error, you need to increase the number of vendor specific UUIDs through increasing NRF_SDH_BLE_VS_UUID_COUNT in the BLE Stack configuration section of sdh_config.h.

    Regards,
    Terje

Reply
  • Hi,

    Error code 0x04 is NRF_ERROR_NO_MEM, and it can come from several API calls inside of ble_dfu_buttonless_init(). You could do a debug session, and check for each function call returning an err_code there, which one returns the error.

    Most likely you have not configured the SoftDevice correctly for the number of vendor specific UUIDs needed, leading to the sd_ble_uuid_vs_add() call to fail. If that is the error, you need to increase the number of vendor specific UUIDs through increasing NRF_SDH_BLE_VS_UUID_COUNT in the BLE Stack configuration section of sdh_config.h.

    Regards,
    Terje

Children
Related