Fota : Image doesnt get swapped if image size is slightly bigger

Hey,

I have been using the FOTA download client library with bg95 module for HTTP dfu for a while and works perfectly fine.

Now that I have added a few additions to my project, which have made its size bigger. And now almost 98% of both my RAM and FLASH are full.

Memory region         Used Size  Region Size  %age Used
           FLASH:      477780 B     491008 B     97.31%
             RAM:      253448 B       256 KB     96.68%
        IDT_LIST:          0 GB        32 KB      0.00%

Now when I start fota, everything works good till downloading and setting the swap type and resetting device, but immediately the old(same) firmware boots up.

I could able to see another image in slot 1 when read via device manager apk(couldn't select the confirm option there too, error:bad state), also tried ble dfu via device manager apk, same happens here too, image uploads, new image in slot 1 when read, and when I send reset command old firmware boots immediately.(same in nrf connect apk too).

But when I reduce some libraries from my project, which results in following memory usage, fota works fine and image gets swapped.

Memory region         Used Size  Region Size  %age Used
           FLASH:      468192 B     491008 B     95.35%
             RAM:      251364 B       256 KB     95.89%
        IDT_LIST:          0 GB        32 KB      0.00%

What could be the possible reason? 

and also, is the IDT_LIST necessary?? mostly the project doesn't require debug requirements. can i able to disable them so I can extend the flash size ??

Related