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

Signing the sample image error.

Hello 

I am test the SMP Server Sample,but image signed error.

ncs1.6.0

board:nrf52840

Parents Reply
  • Hi 

    I would recommend navigating to the project folder before you run west build, so that all the build files end up in the project directory itself, rather than directly under the NCS main directory.  

    For signing the binaries it is recommended simply to do this as part of the build command, as shown here

    Then all you have to do is to add the following to your build command, and the signed binaries will be created automatically:
    -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"bootloader/mcuboot/root-rsa-2048.pem\"

    Best regards
    Torbjørn

Children
Related