Hi,
I'm getting the following error during migration from 2.0.0 to 2.1.0:
[505/551] Building CXX object CMakeFiles/app.dir/C_/ncs/v2.1.0/modules/lib/matter/src/app/util/attribute-size-util.cpp.obj
[506/551] Building C object CMakeFiles/app.dir/src/nrf53_MAIN.c.obj
[507/551] Building C object CMakeFiles/app.dir/src/nRF53_IO.c.obj
[508/551] Building C object CMakeFiles/app.dir/src/nRF53_Common.c.obj
[509/551] Building CXX object CMakeFiles/app.dir/C_/ncs/v2.1.0/modules/lib/matter/src/app/util/ember-compatibility-functions.cpp.obj
[510/551] Building CXX object CMakeFiles/app.dir/C_/ncs/v2.1.0/modules/lib/matter/src/app/util/attribute-storage.cpp.obj
[511/551] Building C object CMakeFiles/app.dir/src/nRF53_UART_1.c.obj
FAILED: CMakeFiles/app.dir/src/nRF53_UART_1.c.obj
C:\ncs\toolchains\v2.1.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DCHIP_HAVE_CONFIG_H -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -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="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERT -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I../src -IC:/ncs/v2.1.0/nrf/samples/matter/common/src -IC:/ncs/v2.1.0/modules/lib/matter/third_party/nlio/repo/include -IC:/ncs/v2.1.0/modules/lib/matter/zzz_generated/app-common -IC:/ncs/v2.1.0/zephyr/include/zephyr -IC:/ncs/v2.1.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.1.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.1.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.1.0/zephyr/lib/util/fnmatch/. -IC:/ncs/v2.1.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.1.0/zephyr/subsys/bluetooth -IC:/ncs/v2.1.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.1.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.1.0/zephyr/subsys/net/lib/sockets/. -IC:/ncs/v2.1.0/zephyr/subsys/settings/include -IC:/ncs/v2.1.0/nrf/include -IC:/ncs/v2.1.0/zephyr/modules/openthread/platform/. -IC:/ncs/v2.1.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.1.0/modules/hal/nordic/nrfx -IC:/ncs/v2.1.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.1.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.1.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.1.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.1.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.1.0/modules/lib/zcbor/include -IC:/ncs/v2.1.0/nrfxlib/nfc/include -IC:/ncs/v2.1.0/nrfxlib/openthread/include -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/ncs/v2.1.0/nrfxlib/nrf_security/include -IC:/ncs/v2.1.0/nrfxlib/nrf_security/include/mbedtls -IC:/ncs/v2.1.0/nrfxlib/nrf_security/include/psa -IC:/ncs/v2.1.0/mbedtls/include -IC:/ncs/v2.1.0/mbedtls/include/mbedtls -IC:/ncs/v2.1.0/mbedtls/include/psa -IC:/ncs/v2.1.0/mbedtls/library -IC:/ncs/v2.1.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include -IC:/ncs/v2.1.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.1.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -IC:/ncs/v2.1.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.1.0/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v2.1.0/nrfxlib/softdevice_controller/include -IC:/ncs/v2.1.0/nrfxlib/nrf_802154/serialization/include -IC:/ncs/v2.1.0/nrfxlib/nrf_802154/serialization/include/platform -IC:/ncs/v2.1.0/nrfxlib/nrf_802154/serialization/include/serialization -IC:/ncs/v2.1.0/nrfxlib/nrf_802154/serialization/include/host -IC:/ncs/v2.1.0/zephyr/include/zephyr/posix -IC:/ncs/v2.1.0/zephyr/subsys/mgmt/mcumgr/lib/mgmt/include -IC:/ncs/v2.1.0/zephyr/subsys/mgmt/mcumgr/lib/util/include -IC:/ncs/v2.1.0/zephyr/subsys/mgmt/mcumgr/lib/smp/include -IC:/ncs/v2.1.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include -IC:/ncs/v2.1.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/os_mgmt/include -IC:/ncs/v2.1.0/modules/lib/matter/src -IC:/ncs/v2.1.0/modules/lib/matter/src/include -IC:/ncs/v2.1.0/modules/lib/matter/src/lib -IC:/ncs/v2.1.0/modules/lib/matter/third_party/nlassert/repo/include -Imodules/connectedhomeip/gen/include -IC:/ncs/v2.1.0/modules/lib/matter/examples/providers -isystem C:/ncs/v2.1.0/nrfxlib/crypto/nrf_cc312_platform/include "-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>" -Og -imacros C:/MatterLock/nRF_lock/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.1.0/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:/MatterLock/nRF_lock=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.1.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.1.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -D_SYS__PTHREADTYPES_H_ -MD -MT CMakeFiles/app.dir/src/nRF53_UART_1.c.obj -MF CMakeFiles\app.dir\src\nRF53_UART_1.c.obj.d -o CMakeFiles/app.dir/src/nRF53_UART_1.c.obj -c ../src/nRF53_UART_1.c
In file included from C:\ncs\v2.1.0\zephyr\include\zephyr\arch\arm\aarch32\arch.h:20,
from C:\ncs\v2.1.0\zephyr\include\zephyr\arch\cpu.h:19,
from C:\ncs\v2.1.0\zephyr\include\zephyr\kernel_includes.h:33,
from C:\ncs\v2.1.0\zephyr\include\zephyr\kernel.h:17,
from C:\ncs\v2.1.0\zephyr\include\zephyr\zephyr.h:18,
from c:\MatterLock\nRF_lock\src\nRF53_UART_1.c:9:
../src/nRF53_UART_1.c: In function 'init_uart_1':
c:\MatterLock\nRF_lock\build\zephyr\include\generated\devicetree_unfixed.h:12127:38: error: 'DT_N_S_soc_S_peripheral_50000000_S_uart_9000_P_label' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_uart_9000_P_reg'?
12127 | #define DT_N_NODELABEL_uart1 DT_N_S_soc_S_peripheral_50000000_S_uart_9000
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:3068:24: note: in definition of macro 'DT_CAT'
3068 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:715:27: note: in expansion of macro 'DT_PROP'
715 | #define DT_LABEL(node_id) DT_PROP(node_id, label)
| ^~~~~~~
c:\MatterLock\nRF_lock\src\nRF53_UART_1.c:135:33: note: in expansion of macro 'DT_LABEL'
135 | uart_1 = device_get_binding(DT_LABEL(DT_NODELABEL(uart1)));
| ^~~~~~~~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:3068:24: note: in expansion of macro 'DT_N_NODELABEL_uart1'
3068 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:177:29: note: in expansion of macro 'DT_CAT'
177 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
c:\MatterLock\nRF_lock\src\nRF53_UART_1.c:135:42: note: in expansion of macro 'DT_NODELABEL'
135 | uart_1 = device_get_binding(DT_LABEL(DT_NODELABEL(uart1)));
| ^~~~~~~~~~~~
c:\MatterLock\nRF_lock\build\zephyr\include\generated\devicetree_unfixed.h:12127:38: note: each undeclared identifier is reported only once for each function it appears in
12127 | #define DT_N_NODELABEL_uart1 DT_N_S_soc_S_peripheral_50000000_S_uart_9000
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:3068:24: note: in definition of macro 'DT_CAT'
3068 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:715:27: note: in expansion of macro 'DT_PROP'
715 | #define DT_LABEL(node_id) DT_PROP(node_id, label)
| ^~~~~~~
c:\MatterLock\nRF_lock\src\nRF53_UART_1.c:135:33: note: in expansion of macro 'DT_LABEL'
135 | uart_1 = device_get_binding(DT_LABEL(DT_NODELABEL(uart1)));
| ^~~~~~~~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:3068:24: note: in expansion of macro 'DT_N_NODELABEL_uart1'
3068 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
C:\ncs\v2.1.0\zephyr\include\zephyr\devicetree.h:177:29: note: in expansion of macro 'DT_CAT'
177 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
c:\MatterLock\nRF_lock\src\nRF53_UART_1.c:135:42: note: in expansion of macro 'DT_NODELABEL'
135 | uart_1 = device_get_binding(DT_LABEL(DT_NODELABEL(uart1)));
|
I am working on Custom board and here is my board folder .zip
Thanks & Regards,
Kaushik Parsana
