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

nrfutil pkg generate bootloader freeze the computer

nrfutil version 1.5.5

On Linux Mint (Ubuntu like)

in folder nRF5_SDK_12.1.0_0d23e2a/examples/dfu/bootloader_secure/pca10040/armgcc

make

nrfutil pkg generate --bootloader _build/nrf52832_xxaa_s132.bin --hw-version 52 --bootloader-version 0x00000001 --sd-req 0x8C --key-file /xxx/private.pem test.zip

I use htop to monitor my CPU/mem activity. When I run nrfutil, 1 CPU goes 100% and my memory get swallowed in 10 seconds (all my memory is used) making my PC freezes.

Using nrfutil to generate application packages works fine and no memory consumption registered.