Hi,
Sorry to seek help again but I cant solve this issue
Steps
1 - nrfjprog -f nrf52 --eraseall
2 - nrfjprog -f nrf52 --program mbr.hex --sectorerase --verify
With the mbr in "nRF5_SDK_17.1.0_ddde560\components\softdevice\mbr\hex\mbr_nrf52_2.4.1_mbr.hex"
3 - nrfjprog -f nrf52 --program btl.hex --sectorerase --verify
With the bootloader in "nRF5_SDK_17.1.0_ddde560\examples\dfu\secure_bootloader\pca10056_uart_debug\armgcc\_build\nrf52840_xxaa_mbr.hex"
Compiled configured for my custom board
4 - nrfutil dfu serial -pkg app.zip -p COM4 -fc false -b 115200
Output
I think the bootloader crashes before jumping to my app, here are the RTT logs
<info> app: Inside main <debug> app: In nrf_bootloader_init <debug> nrf_dfu_settings: Calling nrf_dfu_settings_init()... <debug> nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend. <debug> nrf_dfu_settings: Using settings page. <debug> nrf_dfu_settings: Copying forbidden parts from backup page. <debug> nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping. <info> nrf_dfu_settings: Backing up settings page to address 0xFE000. E000. 001000
Also while debugging the bootloader I get a breakpoint there

It looks like the bootloader crashes when writing in flash, what did I do wrong ?