This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfutil fails with " Application file not found." but return code is 0

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

Parents
  • Hello,

    Do you have a particular reason to use such an old nrfutil?
    I tested using nrfutil v6.1.0 (current version), and in that case nrfutil settings generate returns 1 when the application .hex file doesn't exist.

    Either way, I guess it is fixed at this point. I don't see it very likely that our nrfutil team will go back and create a new nrfutil 2.3.1 version.

    Is upgrading nrfutil an alternative for you? Or do you have another way of working around this issue? To be fair, I wasn't aware that this returned anything until now.

    Best regards,

    Edvin

Reply
  • Hello,

    Do you have a particular reason to use such an old nrfutil?
    I tested using nrfutil v6.1.0 (current version), and in that case nrfutil settings generate returns 1 when the application .hex file doesn't exist.

    Either way, I guess it is fixed at this point. I don't see it very likely that our nrfutil team will go back and create a new nrfutil 2.3.1 version.

    Is upgrading nrfutil an alternative for you? Or do you have another way of working around this issue? To be fair, I wasn't aware that this returned anything until now.

    Best regards,

    Edvin

Children
Related