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

Compilation error when CONFIG_BOOTLOADER_MCUBOOT=y specified

Describe the bug
Compilation error when CONFIG_BOOTLOADER_MCUBOOT=y or CONFIG_SECURE_BOOT=y specified

To Reproduce
Steps to reproduce the behavior:

  1. go to zephyr\samples\subsys\nvs
  2. add to prj.conf
    CONFIG_BOOTLOADER_MCUBOOT=y
    or
    CONFIG_SECURE_BOOT=y
  3. build the project

Expected behavior
build finished without errors

Impact
unable to compile the project

Console output

1> D:/nfr/v1.3.0-rc1/zephyr/include/storage/flash_map.h:235:11: error: 'PM_PM_PM_storage_ID_LABEL_OFFSET' undeclared (first use in this function)
1> D:/nfr/v1.3.0-rc1/zephyr/include/sys/util.h:510:36: note: in definition of macro 'UTIL_PRIMITIVE_CAT'
1> D:/nfr/v1.3.0-rc1/zephyr/include/storage/flash_map.h:235:2: note: in expansion of macro 'UTIL_CAT'
1> ../src/main.c:77:14: note: in expansion of macro 'FLASH_AREA_OFFSET'
1> D:/nfr/v1.3.0-rc1/zephyr/include/storage/flash_map.h:235:11: note: each undeclared identifier is reported only once for each function it appears in
1> D:/nfr/v1.3.0-rc1/zephyr/include/sys/util.h:510:36: note: in definition of macro 'UTIL_PRIMITIVE_CAT'
1> D:/nfr/v1.3.0-rc1/zephyr/include/storage/flash_map.h:235:2: note: in expansion of macro 'UTIL_CAT'
1> ../src/main.c:77:14: note: in expansion of macro 'FLASH_AREA_OFFSET'

Environment (please complete the following information):

  • OS: Windows 10 Enterprise (10.0.18363)
  • Toolchain nRF Connect SDK v1.3.0-rc1
  • Version 2.3.0 rc1
Related