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

SDK 17 DFU upgrade in application over serial transport fails

Hi Nordic Team,

I am trying DFU upgrade in application over serial transport.

Same as mentioned in nRF_SDK_15.3.0_background_dfu_3 example I got from one of the discussion thread.

While I have been successful in getting it working with SDK 15.3 over nRF52840 DK board as it is downloaded.

But when I used this same with SDK 17.0.0 with minor changes to get it compiling.

It fails/code crash in the code nrf_dfu_settings.c --> settings_write --> nrf_dfu_flash_erase. Trying to erase location 0xff000 I believe.

Can anyone guide how can I proceed to solve this issue or debug further. 

My wild guess based on other conversations over this forum it may have been due to flash protection enabled for this memory location.

I cannot use SDK 15.3 as my application works on SDK 17 and I would not want to backport it to SDK15.3.

Cheers,

Shishir

Parents Reply
  • Hello Shishir,

    I can't just copy an example from one SDK to another. You need to port it. Please see the porting guides in the release notes of the Major SDK releases between 15.3.0 and 17.0.0. Among other things, you need to update the softdevice headers, and there are some softdevice API changes. I can't compile the 15.3.0 projects in SDK17. If you have already ported it, I suggest that you upload the ported version instead of the 15.3.0 version.

    I can't do this job for you. If you find it hard to port, I suggest you start by just copying the main.c file and your custom files, from 15.3.0 to 17.0.0 and try to compile. See what changes you need to do from there.

    Best regards,

    Edvin

Children
No Data
Related