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

Big primary image prevents FOTA

Hey there,

while developing a rather huge application (~97% FLASH used) for the nRF9160, we encountered the problem, that when triggering a FOTA via lwm2m, it fails.

The updatefile is downloaded correctly, but it's the update process which fails when executing after reboot with a  W: Not enough free space to run swap upgrade error.

The issue seems to be, that there is no completely free sector to swap (We are using the default CONFIG_BOOT_SWAP_USING_MOVE.updatescheme). So far this is the expected behaviour, but is it possible to recognise this state at compile time and throw an warning or even abort compiling when having FOTA activated?

This issue can be quite harmful to devices used in the field.

Thanks for your help :)

using:
nRF9160
ncs v.1.5.1
zephyr v.2.4.99

Parents
  • Hi,

     

    I double-checked internally with the developers.

    You are correct. the last page is reserved for swap/move operations. 

    but is it possible to recognise this state at compile time and throw an warning or even abort compiling when having FOTA activated?

    This is a great suggestion, which was also supported by the developer I talked to. I'll make a internal bug report/feature req on this matter. Thank you very much for reporting this issue back to us and making us aware of this restriction. I hope you have a wonderful weekend!

     

    Kind regards,

    Håkon 

Reply
  • Hi,

     

    I double-checked internally with the developers.

    You are correct. the last page is reserved for swap/move operations. 

    but is it possible to recognise this state at compile time and throw an warning or even abort compiling when having FOTA activated?

    This is a great suggestion, which was also supported by the developer I talked to. I'll make a internal bug report/feature req on this matter. Thank you very much for reporting this issue back to us and making us aware of this restriction. I hope you have a wonderful weekend!

     

    Kind regards,

    Håkon 

Children
Related