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

MCUBOOT Hardware Key

Hi,

I trying to enable Hardware Key for mcuboot.

I do the following at mcuboot.conf

CONFIG_BOOT_HW_KEY=y
But I got the following error:
C:/nrfconnect/v1.5.0/bootloader/mcuboot/boot/zephyr/keys.c:70:21: error: conflicting types for 'bootutil_keys'        
   70 | struct bootutil_key bootutil_keys[1] = {
      |                     ^~~~~~~~~~~~~
In file included from C:/nrfconnect/v1.5.0/bootloader/mcuboot/boot/zephyr/keys.c:20:
C:/nrfconnect/v1.5.0/bootloader/mcuboot/boot/bootutil/include/bootutil/sign_key.h:38:34: note: previous declaration of 'bootutil_keys' was here
   38 | extern const struct bootutil_key bootutil_keys[];
      |                                  ^~~~~~~~~~~~~
Do I miss something? Thanks,
 
Parents Reply
  • hyper said:
    AFAICT, there is still the same sort of bug in single_loader.c that hasn't been fixed upstream yet.
    hyper said:
    I think that a similar #include order issue may also be present in single_loader.c, because, for example, bootutil_priv.h depends on MCUBOOT_ENC_IMAGES. But that appears to be set in mcuboot_config.h, which is included later.

    Are you able to trigger an issue here? I think this should be ok, since bootutil_priv.h includes mcuboot_config.h

Children
Related