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

Single bank bootloader

Hi

Because the dfu_single_bank.c file is not functional over BLE, I'm trying to modify the dual bank configuration to single bank. The modification should be very simple, because the only thing to do is to remap the sections, and to avoid deleting the app section when entering in bootloader. Instead, it must be deleted when the image_set package is received.

My bootloader modification is working when the app section is cleared when sending the firmware, but fails when it must clear the old firmware before transfer the new one. In this case, I get an error in app_data_process(), lines:

    err_code = hci_mem_pool_rx_produce(length, (void**) &mp_rx_buffer);
if (err_code != NRF_SUCCESS)
{
    dfu_error_notify(p_dfu, err_code);
    return;
}

err_code = NRF_ERROR_NO_MEM.

I understand nothing. Looks like I need more memory, but I don't see the reason. I've tried to increase the heap and stack memory, but same results.

Any suggestion? I'm stuck at this point since almost two days, and I haven't more ideas to try.

Thanks you in advance

Elena

Ps: I don't mind to share my single bank file when finished.

Parents
  • i am also facing single_bank implementation you say its very easy to change dual bank to single bank configuration only thing to do is to remap the sections, and to avoid deleting the app section when entering in bootloader. Instead, it must be deleted when the image_set package is received. can u pls share that changing section code only. really its very help for me

Reply
  • i am also facing single_bank implementation you say its very easy to change dual bank to single bank configuration only thing to do is to remap the sections, and to avoid deleting the app section when entering in bootloader. Instead, it must be deleted when the image_set package is received. can u pls share that changing section code only. really its very help for me

Children
No Data
Related