I am running SDK 15.2 on an nRF52840. I have programmed my secure dfu bootloader, application, settings.hex, and softdevice via jtag. During the first run after programming the bootloader runs, resets, runs, and then successfully executes my application. This reset only occurs on the first run after programming the bootloader. I am trying to understand why this reset is occurring. I was thinking it had something to do with the master boot record not being initialized. Either that or possibly something with my settings.hex. I think settings.hex is less likely but here how I am creating it.
nrfutil settings generate --family NRF52840 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex