nrfutil pkg extreemly slow on mac

Hi,

using nrfutil pkg to generate the settings.hex file for the DFU is exceptionally slow on my M2.

I'm using what I believe is the latest version 

nrfutil 7.5.0 (063f665 2023-05-11)
commit-hash: 063f665c8ef5e4d46167077b52d39cf4e66ca24f
commit-date: 2023-05-11
host: aarch64-apple-darwin
build-timestamp: 2023-05-11T07:48:35.836017Z
classification: nrf-external

Is this expected?

Is this the latest version?

Running it on linux it's a couple hundred ms to finish, where on osx it's 15 seconds.

Parents Reply Children
  • Yes you need to have nRF Util installed on your system to run these commands (which you have).but if not, you haven't installed it yet, you can download it from the nRF Util product page and follow the installation instructions provided in the nRF Util documentation.

    You can upgrade the nRF Util core module and its commands from the command line using the following steps:
    To upgrade the nRF Util core module, run the following command:
    nrfutil self-upgrade
    This command will update the nRF Util core module to the latest version.
    To view the commands with available updates, run the following command:
    nrfutil list --outdated
    This command will list all the commands that have updates available.
    To upgrade the commands, run the following command:
    nrfutil upgrade
    This command will update all the commands to their latest versions.
  • Thanks, did that, but that did only help partially, it dropped by 30% to 10.5 seconds instead.

    *****>nrfutil --version
    nrfutil 7.11.1 (7c99be8 2024-05-30)
    commit-hash: 7c99be87b691a9ea8c7d95a2190356eddad33329
    commit-date: 2024-05-30
    host: aarch64-apple-darwin
    build-timestamp: 2024-05-30T12:48:52.702689000Z
    classification: nrf-external

    *****> time nrfutil pkg
    Usage: pc_nrfutil_legacy_v6.1.7 pkg [OPTIONS] COMMAND [ARGS]...

    This set of commands supports Nordic DFU package generation.

    Options:
    --help Show this message and exit.

    Commands:
    display Display the contents of a .zip package file.
    generate Generate a zip file for performing DFU.
    nrfutil pkg 0.51s user 1.12s system 15% cpu 10.501 total

  • If there is no antivirus or any admin rule on your Macbook to scan every file/script that runs, and you have the latest, then we do not know what the issue is. We test these packages on Mac and have not seen this ourselves.I am out of ideas here.

  • Hi, tried this on two other mac Ms here (one M1 and another M2) and both show the same symptoms, my Intel mac doesn't have this issue. Do you test on arm M cores as well?

    Is there any way I can get more logs out of this to try to pin point it?

Related