Hello, I develop the dfu for my application. I started testing the dfu process with maximum image size that I can build and I need some help here.
Here is my pm_static.yml:
I had to limit the imgtool max slot size to 4kB less than mcuboot secondary slot size with the following configuration:
Otherwise, the mcuboot says that the image in secondary slot is not valid (too big).
With such configuration, I can perform dfu for max possible image size that I can build and everything seems to work fine, but the mcuboot prints the following warning:
That suggests the mcuboot secondary slot should be 1 sector lower (4kB) but I don't understand why. If I lower the mcuboot secondary slot by 1 sector, the warning disappears, but I also have to lower the imgtool slot size argument to 0xD5000, to make the dfu pass (which seems to be wasting 1 sector).
So my questions are:
1. Is my pm_static.yml configured okay? Is it the correct way to reserve 1 sector (4kB) for swap using move algorithm?
2. Why mcuboot warns me about non-optimal sector distribution?
3. Is it necessary to limit the imgtool output to 1 memory sector less than the mcuboot secondary slot size?
nRF9160, NCS 2.9.0