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

combine dfu service to nus service failed

Hello,

my sdk is from nRF5_SDK_12.3.0_d7731ad, I added the dfu service to the ble_app_uart project on nrf51822QFAC,but it just could run to serviive_init() function and return NRF_ERROR_NO_MEM.

I have searched the similar problem in the Nordic Developer Zone, but it didn't work. First, if I added the

ble_enable_params.common_enable_params.vs_uuid_count = 2;

in the ble_stack_init(void) function, then it return NRF_ERROR_INTERNAL in the line 229 of \components\libraries\bootloader\dfunrf_dfu_settings.c file.

Second, I also added the

ble_enable_params.gatts_enable_params.attr_tab_size=0x1080;

in the ble_stack_init(void) function, the same result as above was return.

please help me sovle this issue, thanks in advance for the help.

Parents
  • Hello Hung Bui,

    the exactly place return NRF_ERROR_NO_MEM is in the line 175 of ble_dfu.c

    err_code = sd_ble_uuid_vs_add(&nus_base_uuid, &p_dfu->uuid_type); VERIFY_SUCCESS(err_code);

    and below is my setting of the project

    IROM1: start: 0x1B000 size: 0x25000 IRAM1: start: 0x20002B80 size: 0x5480

    I have also changed the IRAM1 start address and size, but it didn't work yet.

Reply
  • Hello Hung Bui,

    the exactly place return NRF_ERROR_NO_MEM is in the line 175 of ble_dfu.c

    err_code = sd_ble_uuid_vs_add(&nus_base_uuid, &p_dfu->uuid_type); VERIFY_SUCCESS(err_code);

    and below is my setting of the project

    IROM1: start: 0x1B000 size: 0x25000 IRAM1: start: 0x20002B80 size: 0x5480

    I have also changed the IRAM1 start address and size, but it didn't work yet.

Children
No Data
Related