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

Problem with DFU implemention

Hello,

We am using nrf52840.The SDK is 15.2.0.I successfully combined usb example code with buttonless dfu. I could update more than once and it worked fine.

Depending on our application we have included some more files and functions to our code. So when I perform the DFU updation it fails with message "DFU DEVICE DISCONNECTED". I didn't make any changes to the code, what I did is just add the files and function to the corrected code of DFU which is done before. I suspect whether the problem is with RAM size and location. So could you please explain how to solve this issue(how to know the space required for RAM in this application and solve it accordingly)?

And also when debugging is done the code get stucked at this point.

err_code = ble_dfu_buttonless_async_svci_init();
APP_ERROR_CHECK(err_code);

Is this because of the issue which i mentioned above(RAM size and location)? When I change the RAM and ROM location the DK is not advertising further.

With Regards,

Shilpa Sunny.

  • Hi Shilpa.

    Can you please explain more in details on the update process?

    What type of bootloader do you have?

    What does you packet contains?

    How do you generate the packet?

    And also when debugging is done the code get stucked at this point.

    err_code = ble_dfu_buttonless_async_svci_init();
    APP_ERROR_CHECK(err_code);

     What error code do you get?

    Best regards,

    Andreas

Related