Im working with ncs 2.1.2 and trying to build MCUboot
Im trying to follow this instructions( link ) but I get the next log error when I try to build.
Building zephyr
west build --build-dir c:\ncs\v2.1.2\mcuboot\boot\zephyr\build c:\ncs\v2.1.2\mcuboot\boot\zephyr
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/ncs/v2.1.2/mcuboot/boot/zephyr
-- Cache files will be written to: C:/ncs/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/ncs/v2.1.2/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.1.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: C:/ncs/v2.1.2/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/dts.cmake
Parsing C:/ncs/v2.1.2/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/.config'
No change to configuration in 'C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/.config'
No change to Kconfig header in 'C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h'
CMake Warning at C:/ncs/v2.1.2/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
----------------------------------------------------------
--- WARNING: To maintain the integrity of secure boot, ---
--- enable CONFIG_DISABLE_FLASH_PATCH in production. ---
----------------------------------------------------------
MCUBoot bootloader key file: C:/ncs/v2.1.2/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ncs/v2.1.2/mcuboot/boot/zephyr/build
[1/200] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[2/200] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[3/200] Generating include/generated/offsets.h
[4/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[5/200] Building C object CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c.obj -c C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c
In file included from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:32:
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c: In function 'boot_status_entries':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:42: warning: implicit declaration of function 'FIXED_PARTITION_ID'; did you mean 'DT_FIXED_PARTITION_ID'? [-Wimplicit-function-declaration]
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:159:35: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
159 | if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_PRIMARY(image_index) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:159:35: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
159 | if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_PRIMARY(image_index) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: note: each undeclared identifier is reported only once for each function it appears in
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:159:35: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
159 | if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_PRIMARY(image_index) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:160:35: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
160 | flash_area_get_id(fap) == FLASH_AREA_IMAGE_SECONDARY(image_index)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/bootutil_misc.c: In function 'boot_find_status':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_misc.c:251:9: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
251 | FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
[6/200] Building C object CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c.obj -c C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c
In file included from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_priv.h:33,
from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:25:
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c: In function 'swap_status_source':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:42: warning: implicit declaration of function 'FIXED_PARTITION_ID'; did you mean 'DT_FIXED_PARTITION_ID'? [-Wimplicit-function-declaration]
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:278:37: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
278 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:278:37: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
278 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: note: each undeclared identifier is reported only once for each function it appears in
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:278:37: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
278 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:284:37: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
284 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_SECONDARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_move.c: In function 'swap_run':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:495:26: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
495 | rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY(image_index), &fap_pri);
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_move.c:498:26: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
498 | rc = flash_area_open(FLASH_AREA_IMAGE_SECONDARY(image_index), &fap_sec);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
[7/200] Building C object CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c.obj -c C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c
In file included from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_priv.h:33,
from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:41:
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c: In function 'boot_initialize_area':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:42: warning: implicit declaration of function 'FIXED_PARTITION_ID'; did you mean 'DT_FIXED_PARTITION_ID'? [-Wimplicit-function-declaration]
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:321:23: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
321 | if (flash_area == FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:321:23: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
321 | if (flash_area == FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: note: each undeclared identifier is reported only once for each function it appears in
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:321:23: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
321 | if (flash_area == FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:324:30: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
324 | } else if (flash_area == FLASH_AREA_IMAGE_SECONDARY(BOOT_CURR_IMG(state))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c: In function 'boot_read_sectors':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:363:38: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
363 | rc = boot_initialize_area(state, FLASH_AREA_IMAGE_PRIMARY(image_index));
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:368:38: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
368 | rc = boot_initialize_area(state, FLASH_AREA_IMAGE_SECONDARY(image_index));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/loader.c: In function 'boot_write_status':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\loader.c:446:19: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
446 | area_id = FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state));
| ^~~~~~~~~~~~~~~~~~~~~~~~
[8/200] Building C object CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c.obj -c C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c
In file included from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\bootutil_priv.h:33,
from C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:25:
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c: In function 'swap_status_init':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:42: warning: implicit declaration of function 'FIXED_PARTITION_ID'; did you mean 'DT_FIXED_PARTITION_ID'? [-Wimplicit-function-declaration]
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:99:37: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
99 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_SECONDARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function)
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:99:37: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
99 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_SECONDARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: note: each undeclared identifier is reported only once for each function it appears in
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:99:37: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
99 | rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_SECONDARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c: In function 'swap_read_status':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:151:19: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
151 | area_id = FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state));
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c: In function 'swap_set_copy_done':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:194:26: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
194 | rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.1.2/mcuboot/boot/bootutil/src/swap_misc.c: In function 'swap_set_image_ok':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function)
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
C:\ncs\v2.1.2\mcuboot\boot\bootutil\src\swap_misc.c:212:26: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
212 | rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY(image_index),
| ^~~~~~~~~~~~~~~~~~~~~~~~
[9/200] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
FAILED: CMakeFiles/app.dir/flash_map_extended.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/flash_map_extended.c.obj -MF CMakeFiles\app.dir\flash_map_extended.c.obj.d -o CMakeFiles/app.dir/flash_map_extended.c.obj -c ../flash_map_extended.c
In file included from c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:12:
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\target.h:36:29: error: missing binary operator before token "("
36 | !(FIXED_PARTITION_EXISTS(slot0_partition)) || \
| ^
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\target.h:42:61: error: missing binary operator before token "("
42 | #if (MCUBOOT_IMAGE_NUMBER == 2) && (!(FIXED_PARTITION_EXISTS(slot2_partition)) || \
| ^
In file included from c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:15:
../flash_map_extended.c: In function 'flash_area_id_from_multi_image_slot':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:42: warning: implicit declaration of function 'FIXED_PARTITION_ID'; did you mean 'DT_FIXED_PARTITION_ID'? [-Wimplicit-function-declaration]
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:54:20: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
54 | case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index);
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function); did you mean 'k_mem_partition'?
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:54:20: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
54 | case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index);
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: note: each undeclared identifier is reported only once for each function it appears in
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:54:20: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
54 | case 0: return FLASH_AREA_IMAGE_PRIMARY(image_index);
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function); did you mean 'k_mem_partition'?
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:56:20: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
56 | case 1: return FLASH_AREA_IMAGE_SECONDARY(image_index);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../flash_map_extended.c: In function 'flash_area_id_to_multi_image_slot':
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:18:61: error: 'slot0_partition' undeclared (first use in this function); did you mean 'k_mem_partition'?
18 | FIXED_PARTITION_ID(slot0_partition) : \
| ^~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:73:20: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
73 | if (area_id == FLASH_AREA_IMAGE_PRIMARY(image_index)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\sysflash\sysflash.h:21:61: error: 'slot1_partition' undeclared (first use in this function); did you mean 'k_mem_partition'?
21 | FIXED_PARTITION_ID(slot1_partition) : \
| ^~~~~~~~~~~~~~~
c:\ncs\v2.1.2\mcuboot\boot\zephyr\flash_map_extended.c:77:20: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
77 | if (area_id == FLASH_AREA_IMAGE_SECONDARY(image_index)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
[10/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[11/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[12/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[13/200] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[14/200] Building C object CMakeFiles/app.dir/main.c.obj
FAILED: CMakeFiles/app.dir/main.c.obj
C:\ncs\toolchains\v2.1.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../include -I../targets -IC:/ncs/v2.1.2/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.2/zephyr/include/zephyr -IC:/ncs/v2.1.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.1.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.2/nrf/include -IC:/ncs/v2.1.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.2/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.1.2/modules/debug/segger/SEGGER -IC:/ncs/v2.1.2/modules/debug/segger/Config -IC:/ncs/v2.1.2/zephyr/modules/segger/. -IC:/ncs/v2.1.2/modules/crypto/mbedtls/include -IC:/ncs/v2.1.2/zephyr/modules/mbedtls/configs -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.1.2/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.1.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.1.2/nrfxlib/crypto/nrf_cc310_platform/include -Og -imacros C:/ncs/v2.1.2/mcuboot/boot/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.1.2/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/main.c.obj -MF CMakeFiles\app.dir\main.c.obj.d -o CMakeFiles/app.dir/main.c.obj -c ../main.c
In file included from c:\ncs\v2.1.2\mcuboot\boot\zephyr\main.c:36:
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\target.h:36:29: error: missing binary operator before token "("
36 | !(FIXED_PARTITION_EXISTS(slot0_partition)) || \
| ^
c:\ncs\v2.1.2\mcuboot\boot\zephyr\include\target.h:42:61: error: missing binary operator before token "("
42 | #if (MCUBOOT_IMAGE_NUMBER == 2) && (!(FIXED_PARTITION_EXISTS(slot2_partition)) || \
| ^
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.2\opt\bin\cmake.EXE' --build 'c:\ncs\v2.1.2\mcuboot\boot\zephyr\build'
What am I doing wrong? I revised the .dts file and it has the "slot0_partition" defined.