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

Need FOTA Support in LWM2M firmware update object using block2 coap process.

Hi 

We searched a lot of stuff regarding FOTA update in nRF52840DK using Lwm2m and coap protocol. But we could not get help in the right direction. We could not find any stuff or documentation (explanation) regarding BACKROUND_DFU in nRF16_SDK.

We already implemented firmware object and its instance callback with existing lwm2m client example. Now we want to update the firmware over the air using lwm2m and coap protocols. Please share any kind of stuff or example you have so that we can get out from this trouble

Parents
  • Hi Pankaj,

    I must admit that we do not have much experience with the experimental IoT DFU, as it is not much used, so unfortunately that makes it a bit more difficult than usual to make good suggestions. But hopefully we will get there in the end.

    Regarding nrf_bootloader_fw_activate() returning ACTIVATION_NONE that shows that the bootloader does not know that there is an image to activate because the bank_code for bank 1 does not indicate that a valid app is present. So this was not correctly configured before the reste (into the bootloader).

    The Invalid init command error would be because the init command which is stored in the dfu_settings page is invalid. Was it copied there correctly in the first place? The nrfutil comand seems sensible, so the init command within the DFU zip should be correct.

Reply
  • Hi Pankaj,

    I must admit that we do not have much experience with the experimental IoT DFU, as it is not much used, so unfortunately that makes it a bit more difficult than usual to make good suggestions. But hopefully we will get there in the end.

    Regarding nrf_bootloader_fw_activate() returning ACTIVATION_NONE that shows that the bootloader does not know that there is an image to activate because the bank_code for bank 1 does not indicate that a valid app is present. So this was not correctly configured before the reste (into the bootloader).

    The Invalid init command error would be because the init command which is stored in the dfu_settings page is invalid. Was it copied there correctly in the first place? The nrfutil comand seems sensible, so the init command within the DFU zip should be correct.

Children
No Data
Related