Matter light_switch: Error when generating and building: 'PM_MCUBOOT_SECONDARY_ADDRESS' undeclared here

Freshly installed VS Code natively on Windows (also tried on Linux and WSL with same result) with NRF Connect Extension Pack, SDK 3.1.1, Toolchain 3.1.1 was used to create a new application as copy of the matter/light_switch sample. Chip is XIAO NRF54L15. I did not apply any changes to the default config. I selected the xiao_nrf54l15/nrf54l15/cpuapp board from the XIAO github.

Unfortunately it fails because PM_MCUBOOT_SECONDARY_ADDRESS is not defined. Here the relevant part from the log:

FAILED: modules/nrf/subsys/dfu/dfu_target/CMakeFiles/..__nrf__subsys__dfu__dfu_target.dir/src/dfu_target_mcuboot.c.obj
C:\ncs\toolchains\c1a76fddb2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-
psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNCS_APPLICATION_BOOT_BANNER_GIT_REPO -DNRF54L15_XXAA -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CARR
IER_FUNCTIONS_ENABLED=0 -DNRF_802154_CCAIDLE_TO_TXEN_EXTRA_TIME_US=0 -DNRF_802154_CCA_CORR_LIMIT_DEFAULT=2 -DNRF_802154_CCA_CORR_THRESHOLD_DEFAULT=45 -DNRF_802154_CCA_ED_THRESHOLD_DBM_DEFAULT=-75 -DNR
F_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_ED -DNRF_802154_CSMA_CA_MAX_BE_DEFAULT=5 -DNRF_802154_CSMA_CA_MAX_CSMA_BACKOFFS_DEFAULT=4 -DNRF_802154_CSMA_CA_MIN_BE_DEFAULT=3 -DNRF_802154_ECB_PRIORITY=-
1 -DNRF_802154_ENCRYPTION_ENABLED=1 -DNRF_802154_IE_WRITER_ENABLED=1 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES=16 -DNRF_802154_PENDING_SHORT_ADDRESSES=16 -DNRF
_802154_PLATFORM_ASSERT_INCLUDE=\"nrf_802154_assert_zephyr.h\" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_KEY_STORAGE_SIZE=3 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SERIALIZATION_HOS
T=0 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERTS -D_ANSI_SOURCE -D__FILE__=__FILE_NAME
__ -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/include -IC:/ncs/v3.1.1/nrf/drivers/mpsl/clock_control -IC:/Users/ZZZ/source/repos/lightswit
ch/build/lightswitch/zephyr/include/generated/zephyr -IC:/ncs/v3.1.1/zephyr/include -IC:/Users/ZZZ/source/repos/lightswitch/build/lightswitch/zephyr/include/generated -IC:/ncs/v3.1.1/zephyr/soc/nordi
c -IC:/ncs/v3.1.1/zephyr/lib/libc/newlib/include -IC:/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/. -IC:/ncs/v3.1.1/zephyr/soc/nordic/common/. -IC:/ncs/v3.1.1/zephyr/subsys/bluetooth -IC:/ncs/v3.1.1/zephyr/su
bsys/settings/include -IC:/ncs/v3.1.1/nrf/include -IC:/ncs/v3.1.1/nrf/lib/multithreading_lock/. -IC:/ncs/v3.1.1/nrf/subsys/bluetooth/controller/. -IC:/ncs/v3.1.1/nrf/subsys/trusted_storage/include -IC
:/ncs/v3.1.1/nrf/subsys/settings/include -IC:/ncs/v3.1.1/zephyr/drivers/flash -IC:/ncs/v3.1.1/nrf/tests/include -IC:/ncs/v3.1.1/zephyr/modules/openthread/include -IC:/ncs/v3.1.1/nrf/modules/openthread
/platform/. -IC:/ncs/v3.1.1/zephyr/modules/openthread/platform -IC:/ncs/v3.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.1.1/zephyr/module
s/cmsis_6/. -IC:/ncs/v3.1.1/nrf/modules/hal_nordic/. -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -IC:/nc
s/v3.1.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.1.1/modules/hal/st/sensor/stmemsc/lsm6dso_STdC/driver -IC:/ncs/v3.1.1/modules/lib/zcbor/include -IC:/ncs/v3.1.1/nrfxlib/nfc/include -IC:/ncs/v3.1.
1/nrfxlib/softdevice_controller/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/common/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/nrf21540_gpio_spi/includ
e -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/nrf2220/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/nrf2240/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/nrf22xx/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/simple_gpio/includ
e -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/fem/include/protocol -IC:/ncs/v3.1.1/nrfxlib/mpsl/include -IC:/ncs/v3.1.1/nrfxlib/mpsl/include/protocol -IC:/ncs/v3.1.1/nrfxlib/
openthread/include -IC:/Users/ZZZ/source/repos/lightswitch/build/lightswitch/generated/library_nrf_security_psa -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/include -IC:/ncs/v3.1.1/modules/crypto/oberon-p
sa-crypto/oberon/drivers -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/comm
on/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.
1.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -IC
:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.1.1/modules/crypto/mbedtls/library -IC:/ncs/v3.1.1/modules/crypto/mbedtls/include -IC:/ncs/v3.1.1/modules/crypto/mbedtls/include/libra
ry -IC:/ncs/v3.1.1/nrfxlib/nrf_802154/driver/include -IC:/ncs/v3.1.1/nrfxlib/nrf_802154/sl/include -IC:/ncs/v3.1.1/nrfxlib/nrf_802154/sl/sl/include -IC:/ncs/v3.1.1/nrfxlib/nrf_802154/common/include -I
C:/ncs/v3.1.1/zephyr/modules/hal_nordic/nrf_802154/include -IC:/ncs/v3.1.1/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v3.1.1/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v3.1.1
/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v3.1.1/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros C:/Users/ZZZ/source/repos/lightswitch/build/light
switch/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c1a76fddb2/opt
/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-poin
ter-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-d
efer-pop -fmacro-prefix-map=C:/Users/ZZZ/source/repos/lightswitch=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.1.1=WEST_TOPDIR -ffunction-sections
 -fdata-sections -specs=nano.specs -Wno-builtin-macro-redefined -std=c99 -MD -MT modules/nrf/subsys/dfu/dfu_target/CMakeFiles/..__nrf__subsys__dfu__dfu_target.dir/src/dfu_target_mcuboot.c.obj -MF modu
les\nrf\subsys\dfu\dfu_target\CMakeFiles\..__nrf__subsys__dfu__dfu_target.dir\src\dfu_target_mcuboot.c.obj.d -o modules/nrf/subsys/dfu/dfu_target/CMakeFiles/..__nrf__subsys__dfu__dfu_target.dir/src/df
u_target_mcuboot.c.obj -c C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c
In file included from C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:18,
                 from C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:34,
                 from C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util.h:17,
                 from C:/ncs/v3.1.1/zephyr/include/zephyr/sys/atomic.h:18,
                 from C:/ncs/v3.1.1/zephyr/include/zephyr/kernel_includes.h:25,
                 from C:/ncs/v3.1.1/zephyr/include/zephyr/kernel.h:17,
                 from C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:19:
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:60:41: error: 'PM_MCUBOOT_SECONDARY_SIZE' undeclared here (not in a function); did you mean 'PM_MCUBOOT_SECONDARY_0_SIZE'?
   60 | #define PM_MCUBOOT_SECONDARY_0_SIZE     PM_MCUBOOT_SECONDARY_SIZE
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:729:36: note: in definition of macro 'Z_GET_ARGS_LESS_1'
  729 | #define Z_GET_ARGS_LESS_1(_0, ...) __VA_ARGS__
      |                                    ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:100:32: note: in expansion of macro 'GET_ARGS_LESS_N'
  100 | #define Z_LIST_DROP_FIRST(...) GET_ARGS_LESS_N(1, __VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:352:9: note: in expansion of macro 'Z_LIST_DROP_FIRST'
  352 |         Z_LIST_DROP_FIRST(FOR_EACH(Z_LIST_NO_EMPTIES, (), __VA_ARGS__))
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:69:53: note: in expansion of macro '__DEBRACKET'
   69 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
   59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:204:9: note: in expansion of macro 'Z_COND_CODE_1'
  204 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:102:9: note: in expansion of macro 'COND_CODE_1'
  102 |         COND_CODE_1(IS_EMPTY(e), (), (Z_LIST_ADD_ELEM(e)))
      |         ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:102:39: note: in expansion of macro 'Z_LIST_ADD_ELEM'
  102 |         COND_CODE_1(IS_EMPTY(e), (), (Z_LIST_ADD_ELEM(e)))
      |                                       ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_LIST_NO_EMPTIES'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:28:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   28 |         z_call(0, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_1'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:502:9: note: in expansion of macro 'Z_FOR_EACH'
  502 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_BYPASS'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:28:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   28 |         z_call(0, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_1'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:657:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
  657 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:502:28: note: in expansion of macro 'REVERSE_ARGS'
  502 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |                            ^~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:352:27: note: in expansion of macro 'FOR_EACH'
  352 |         Z_LIST_DROP_FIRST(FOR_EACH(Z_LIST_NO_EMPTIES, (), __VA_ARGS__))
      |                           ^~~~~~~~
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:66:9: note: in expansion of macro 'LIST_DROP_EMPTY'
   66 |         LIST_DROP_EMPTY(LISTIFY(TARGET_IMAGE_COUNT, _MB_SEC_PAT, (,), SIZE))
      |         ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:34:27: note: in expansion of macro 'PM_MCUBOOT_SECONDARY_0_SIZE'
   34 | #define _MB_SEC_PAT(i, x) PM_MCUBOOT_SECONDARY_ ## i ## _ ## x
      |                           ^~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_listify.h:18:9: note: in expansion of macro '_MB_SEC_PAT'
   18 |         F(0, __VA_ARGS__)
      |         ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'Z_UTIL_LISTIFY_1'
  105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
      |                                    ^
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:66:25: note: in expansion of macro 'LISTIFY'
   66 |         LIST_DROP_EMPTY(LISTIFY(TARGET_IMAGE_COUNT, _MB_SEC_PAT, (,), SIZE))
      |                         ^~~~~~~
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:61:41: error: 'PM_MCUBOOT_SECONDARY_ADDRESS' undeclared here (not in a function); did you mean 'PM_MCUBOOT_SECONDARY_0_ADDRESS'?
   61 | #define PM_MCUBOOT_SECONDARY_0_ADDRESS  PM_MCUBOOT_SECONDARY_ADDRESS
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:729:36: note: in definition of macro 'Z_GET_ARGS_LESS_1'
  729 | #define Z_GET_ARGS_LESS_1(_0, ...) __VA_ARGS__
      |                                    ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:100:32: note: in expansion of macro 'GET_ARGS_LESS_N'
  100 | #define Z_LIST_DROP_FIRST(...) GET_ARGS_LESS_N(1, __VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:352:9: note: in expansion of macro 'Z_LIST_DROP_FIRST'
  352 |         Z_LIST_DROP_FIRST(FOR_EACH(Z_LIST_NO_EMPTIES, (), __VA_ARGS__))
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:69:53: note: in expansion of macro '__DEBRACKET'
   69 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
   59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:204:9: note: in expansion of macro 'Z_COND_CODE_1'
  204 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:102:9: note: in expansion of macro 'COND_CODE_1'
  102 |         COND_CODE_1(IS_EMPTY(e), (), (Z_LIST_ADD_ELEM(e)))
      |         ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:102:39: note: in expansion of macro 'Z_LIST_ADD_ELEM'
  102 |         COND_CODE_1(IS_EMPTY(e), (), (Z_LIST_ADD_ELEM(e)))
      |                                       ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_LIST_NO_EMPTIES'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:28:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   28 |         z_call(0, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_1'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:502:9: note: in expansion of macro 'Z_FOR_EACH'
  502 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_BYPASS'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:28:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   28 |         z_call(0, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_1'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:657:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
  657 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, (,), Z_BYPASS, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:502:28: note: in expansion of macro 'REVERSE_ARGS'
  502 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |                            ^~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:352:27: note: in expansion of macro 'FOR_EACH'
  352 |         Z_LIST_DROP_FIRST(FOR_EACH(Z_LIST_NO_EMPTIES, (), __VA_ARGS__))
      |                           ^~~~~~~~
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:70:9: note: in expansion of macro 'LIST_DROP_EMPTY'
   70 |         LIST_DROP_EMPTY(LISTIFY(TARGET_IMAGE_COUNT, _MB_SEC_PAT, (,), ADDRESS))
      |         ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:34:27: note: in expansion of macro 'PM_MCUBOOT_SECONDARY_0_ADDRESS'
   34 | #define _MB_SEC_PAT(i, x) PM_MCUBOOT_SECONDARY_ ## i ## _ ## x
      |                           ^~~~~~~~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_listify.h:18:9: note: in expansion of macro '_MB_SEC_PAT'
   18 |         F(0, __VA_ARGS__)
      |         ^
C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'Z_UTIL_LISTIFY_1'
  105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
      |                                    ^
C:/ncs/v3.1.1/nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:70:25: note: in expansion of macro 'LISTIFY'
   70 |         LIST_DROP_EMPTY(LISTIFY(TARGET_IMAGE_COUNT, _MB_SEC_PAT, (,), ADDRESS))
      |                         ^~~~~~~
[312/550] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v3.1.1/modules/hal/nordic/nrfx/driv

Related