CONFIG_FW_INFO_MAGIC_COMMON

Magic word for all structs (32 bits).

Type: hex

Help

This is used by different metadata structs (in fw_info.h and elsewhere). They each have their own magic word composed of three u32_t values, where one is always this option (FW_INFO_MAGIC_COMMON). One of the u32_ts is a compatibility ID constructed from FW_INFO_HARDWARE_ID, FW_INFO_VERSION, FW_CRYPTO_ID, and FW_INFO_MAGIC_COMPATIBILITY_ID, while the final u32_t is completely different for each struct, e.g. FW_INFO_MAGIC_FIRMWARE_INFO. The bootloader expects a certain value for each struct, and if it attempts to read a struct without a matching magic word, the struct will be rejected. The config values here apply both to this build of the bootloader and to the metadata constructed for the app. Refer to this module’s CMakeLists.txt to see how the magic words are composed.

Direct dependencies

FW_INFO

(Includes any dependencies from ifs and menus.)

Default

  • 0x281ee6de

Kconfig definition

At /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/subsys/fw_info/Kconfig:35

Included via Kconfig:8Kconfig.zephyr:9/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/test_doc/_build/Kconfig.modules:1/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/Kconfig.nrf:10/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/subsys/Kconfig:26

Menu path: (Top) → Modules → Nordic nRF Connect → Firmware Metadata

config FW_INFO_MAGIC_COMMON
    hex "Magic word for all structs (32 bits)."
    default 0x281ee6de
    depends on FW_INFO
    help
      This is used by different metadata structs (in fw_info.h and
      elsewhere). They each have their own magic word composed of three
      u32_t values, where one is always this option (FW_INFO_MAGIC_COMMON).
      One of the u32_ts is a compatibility ID constructed from
      FW_INFO_HARDWARE_ID, FW_INFO_VERSION, FW_CRYPTO_ID, and
      FW_INFO_MAGIC_COMPATIBILITY_ID, while the final u32_t is completely
      different for each struct, e.g. FW_INFO_MAGIC_FIRMWARE_INFO.
      The bootloader expects a certain value for each struct, and if it
      attempts to read a struct without a matching magic word, the struct
      will be rejected. The config values here apply both to this build of
      the bootloader and to the metadata constructed for the app.
      Refer to this module's CMakeLists.txt to see how the magic words are
      composed.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)