Using NCS 2.5.1. nRF52832 being updated using external flash.
We're having an issue with DFU's on a product that is using a high percentage of the application space (~97.5%) of 360kB reserved (0x58000).
Memory layout for primary:
Memory layout for secondary:
When programming the resulting code manually via a programmer, the code appears to function. When trying to update the code via DFU, MCUboot does not consider the update valid. Optimizing code size for this to be smaller makes the DFU work once again.
A rough guess would be that the ending signature actually overflows the reserved application space, but we haven't verified this.
The fact that large image sizes successfully build with no errors given seems misleading and has caught us out on a few occasions.
Are we configuring anything incorrectly, or is this a known issue?