nrfutil version 2.3.0 correctly fails with message " Application file not found." but incorrectly sets the return code to 0
nrfutil settings generate --family NRF52 --application _build/nrf52832_xxaa.hex --application-version 1 \
+ --bootloader-version 1 \
+ --bl-settings-version 1 settings.hex
--- starting
---------bl_dfu_sett.py- intelhex import IntelHexErrorext ed
---------bl_dfu_sett.py- nrfhex star ed; from nordicsemi.dfu.package import Package next
---- package.py init_packet_pb import star next
---- init_packet_pb.py -- dfu_cc_pb2 as pb (nextline )from enum import Enum
-- dfu_cc_pb2.py sys.version_info(major=2, minor=7, micro=16, releaselevel='final', serial=0)
-- from protobuf/internal import enum_type_wrapper. OK added as a workaround.
----descriptor.py import api_implementation, OK workaround
---- init_packet_pb.py -- dfu_cc_pb2 as pb (nextline )from enum import Enum done
---- package.py init_packet_pb import star done
---------bl_dfu_sett.py- pc_ble_driver_py.exceptions import NordicSemiException next
--- Dfu next
--- version next
--- ipc_ble_driver next
Error: Application file not found.
> echo $?
0