nrfjprog not installing in Docker image

I am trying to create Docker image with all the tools to build and flash the board. But I have the problem with nrfjprog:

$ nrfjprog
bash: nrfjprog: command not found

Nordic command line tools are installed in Docker image by this command:

#
# Nordic command line tools
#
RUN echo "Target architecture: $arch" && \
case $arch in \
"amd64") \
;; \
"arm64") \
;; \
esac && \
if [ ! -z "$NCLT_URL" ]; then \
mkdir tmp && cd tmp && \
wget -qO - "${NCLT_URL}" | tar xz && \
DEBIAN_FRONTEND=noninteractive apt-get -y install ./*.deb && \
cd .. && rm -rf tmp ; \
else \
echo "Skipping nRF Command Line Tools (not available for $arch)" ; \
fi
There is no nrfjprog and no mergehex in /bin folder but have J-Link in /opt/SEGGER

  • Hi,

    We have a example to follow here https://github.com/NordicPlayground/nrf-docker

    Regards,
    Jonathan

  • Hi,

    thank you for the response.

    I tried creating Docker image by following the instructions from the linked repository, but the image still has no nrfjprog.

    $ docker run --rm nrfconnect-sdk /bin/bash -c "nrfjprog"
    /bin/bash: nrfjprog: command not found

  • I have followed the Interactive usage instructions and got following error:

    west flash
    -- west flash: rebuilding
    [0/49] Performing build step for 'tfm'
    ninja: no work to do.
    [1/28] Performing build step for 'b0_subimage'
    ninja: no work to do.
    [2/25] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [3/15] Performing build step for 's1_image_subimage'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    FATAL ERROR: required program nrfjprog not found; install it or add its location to PATH

  • Hei, thanks for trying out the project, I've found an issue with the installation of the nRF Command Line tools, which is adressed in https://github.com/NordicPlayground/nrf-docker/pull/10 ... with that change, nrfjprog is available in the image.