Repetition of the steps followed here.
(1) Generated priv key, and public_key.c file using nrfutil,
(2) generated the bootloader_settings file using nrfutil
(3) Compiled the DFU secure bootloader example under .../examples/dfu/secure_bootloader/pca10056_ble/armgcc/,
(4) Ran mergehex to generate a merged (bootloader+bootloader_settings) hex file
(5) Flashed the softdevice using ./nrfjprog --program ~/Downloads/s140_nrf52_6.0.0/s140_nrf52_6.0.0_softdevice.hex -f nrf52 --chiperase --verify
(6) Flashed the bootloader merged hex file using ./nrfjprog --reset --program .../examples/dfu/secure_bootloader/pca10056_ble/armgcc/_build/nrf52840_xxaa_s140_merged_with_settings.hex --family NRF52 --sectoranduicrerase
I expect the board to enter DFU mode now, before attempting to update the application. Is this a correct assumption?
From the documentation, following are the LED assignments: LED1: Advertising, LED2: Connected LED3: Bootloader/DFU mode. On my board, only LEDs 1 and 2 are lit up. I tried power cycling, pressing button 4, and resetting the board, LED 3 does not light up.