I am using nrfutil version 5.2.0 with Python27. I attempted to build several times and I got the same error. Please let me know what is "mergehex failed for an unknown reason" and "Error 50" mean. The below trace has the additional information.
===============================================
Generated Bootloader DFU settings .hex file and stored it in: _ble_app_settings.hex
Bootloader DFU Settings:
* File: _ble_app_settings.hex
* Family: NRF52840
* Start Address: 0x000FF000
* CRC: 0xA433DE4F
* Settings Version: 0x00000002 (2)
* App Version: 0x00001000 (4096)
* Bootloader Version: 0x00002000 (8192)
* Bank Layout: 0x00000000
* Current Bank: 0x00000000
* Application Size: 0x00057610 (357904 bytes)
* Application CRC: 0x6810ECC7
* Bank0 Bank Code: 0x00000001
* Softdevice Size: 0x00000000 (0 bytes)
* Boot Validation CRC: 0xB341400D
* SD Boot Validation Type: 0x00000000 (0)
* App Boot Validation Type: 0x00000001 (1)
mergehex.exe -m ./SDK_15.3/components/softdevice/s140/hex/s140_nrf52_6.1.1_softdevice.hex build_debug/IPG_ble_app_freertos_eng2_s140.hex build_debug/IPG_secure_bootloader_ble_s140_pca10056.hex -o __temp_hex_file__
Parsing input files.
Merging file "s140_nrf52_6.1.1_softdevice.hex" into output.
Merging file "IPG_ble_app_freertos_eng2_s140.hex" into output.
Merging file "IPG_secure_bootloader_ble_s140_pca10056.hex" into output.
Storing merged file.
was not recognized as supported.ERROR: mergehex failed for an unknown reason. Run the same command again, and
ERROR: contact Nordic Semiconductor if it continues to fail.
make: *** [Makefile:570: ipg-master-hex] Error 50
Thanks,
Dennis