Hi. I'm trying to flash Secure DFU bootloader together with my application. I tried to flash bootloader and then main application, but the device stays in bootloader instead of starting main application. I also tried to combine .hex files of bootloader and main application (using mergehex) and flash merged hexfile, but the situation is the same - after reset, main application doesn't start, bootloader starts instead (DfuTarg device is visible in nRF Connect app).
The only way I found is to flash bootloader (via Segger) and then flash main application using mobile app nRF Connect, but it's not suitable for me.
Am I missing something?