Hi,
I'm implementing the DFU for the nRF5340 MCU and now need to set my private keys to be able to sign firmware files.
The issue is related to the Signature key file specification with the relative path.
There are similar tickets here (for instance, this one), but unfortunately I coudn't find any solution to this.
The most confusing thing is that the suggestions on using relative paths for the private key proposed on DevAcademy do not work as well.
I'm using the following configuration in my CMakeLists.txt:
set(BOOT_SIGNATURE_KEY_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/FirmwareSign/PrivateKey.pem ) if(DEFINED BOOT_SIGNATURE_KEY_FILE) set(CONFIG_BOOT_SIGNATURE_KEY_FILE \"${BOOT_SIGNATURE_KEY_FILE}\") set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE ${CONFIG_BOOT_SIGNATURE_KEY_FILE} ) set(hci_ipc_CONFIG_SB_SIGNING_KEY_FILE ${CONFIG_BOOT_SIGNATURE_KEY_FILE} ) message("Signing Key is applied: ${mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE}") endif() find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
And after the build process fails with thesame issue as here.
NCS and toolchain versions I use: v2.6.2.
That post is 2 years old, so I assume there should be some solution that I can't find.
Would be glad if someone pushed me to it.
Thanks,
Anton