Building project fails for PAN1780 module but worked on nrf52840-dk

Hi,

i am trying to port my project based on the matter light bulb sample to a PAN1780 module which also uses the nrf52840 I used before.

When building I receive this error. The prj.conf is unchanged and I have added an overlay file, but that did not make a difference. I am building for the pan1780 evaluation board, because that is the closest thing available.

These are the build logs from the terminal:

 *  Executing task: nRF Connect: Build: light_occ/build_1 (active) 

Building light_occ
west build --build-dir /home/entwicklung/matter_apps/light_occ/build_1 /home/entwicklung/matter_apps/light_occ

[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /home/entwicklung/matter_apps/light_occ
-- CMake version: 3.20.5
-- Found Python3: /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/python3.8 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/entwicklung/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/entwicklung/ncs/v2.5.0/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: pan1780_evb
-- Found host-tools: zephyr 0.16.1 (/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found BOARD.dts: /home/entwicklung/ncs/v2.5.0/zephyr/boards/arm/pan1780_evb/pan1780_evb.dts
-- Found devicetree overlay: /home/entwicklung/matter_apps/light_occ/boards/pan1780_evb.overlay
-- Generated zephyr.dts: /home/entwicklung/matter_apps/light_occ/build_1/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/entwicklung/matter_apps/light_occ/build_1/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/entwicklung/matter_apps/light_occ/build_1/zephyr/dts.cmake
Parsing /home/entwicklung/matter_apps/light_occ/Kconfig
Loaded configuration '/home/entwicklung/ncs/v2.5.0/zephyr/boards/arm/pan1780_evb/pan1780_evb_defconfig'
Merged configuration '/home/entwicklung/matter_apps/light_occ/prj.conf'
Configuration saved to '/home/entwicklung/matter_apps/light_occ/build_1/zephyr/.config'
Kconfig header saved to '/home/entwicklung/matter_apps/light_occ/build_1/zephyr/include/generated/autoconf.h'

warning: Deprecated symbol IEEE802154_2015 is enabled.


warning: Deprecated symbol CPLUSPLUS is enabled.


warning: Deprecated symbol LIB_CPLUSPLUS is enabled.

-- Found Python3: /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/python3.8 (found version "3.8.2") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/entwicklung/matter_apps/light_occ/build_1/mcuboot/child_image_preload.cmake
-- Application: /home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.20.5
Loading Zephyr default modules (Zephyr base (cached)).
-- Cache files will be written to: /home/entwicklung/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/entwicklung/ncs/v2.5.0/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: pan1780_evb
-- Found host-tools: zephyr 0.16.1 (/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found BOARD.dts: /home/entwicklung/ncs/v2.5.0/zephyr/boards/arm/pan1780_evb/pan1780_evb.dts
-- Found devicetree overlay: /home/entwicklung/ncs/v2.5.0/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/dts.cmake
Parsing /home/entwicklung/ncs/v2.5.0/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.mcuboot.root
Loaded configuration '/home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/.config'
No change to configuration in '/home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/.config'
No change to Kconfig header in '/home/entwicklung/matter_apps/light_occ/build_1/mcuboot/zephyr/include/generated/autoconf.h'
CMake Warning at /home/entwicklung/ncs/v2.5.0/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: /home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/entwicklung/matter_apps/light_occ/build_1/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/entwicklung/ncs/v2.5.0/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /home/entwicklung/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message):
  __ASSERT() statements are globally ENABLED


CMake Warning at /home/entwicklung/ncs/v2.5.0/nrf/cmake/partition_manager.cmake:79 (message):
  

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------
          

Call Stack (most recent call first):
  /home/entwicklung/ncs/v2.5.0/zephyr/cmake/modules/kernel.cmake:247 (include)
  /home/entwicklung/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /home/entwicklung/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/entwicklung/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:23 (find_package)


-- Configuring done
-- Generating done
-- Build files have been written to: /home/entwicklung/matter_apps/light_occ/build_1
[0/489] Performing build step for 'mcuboot_subimage'
[1/29] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[2/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
[3/29] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
[4/29] Building C object CMakeFiles/app.dir/main.c.obj
[5/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
[6/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_ecdsa.c.obj
[7/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
[8/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
[9/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
[10/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
[11/29] Building C object CMakeFiles/app.dir/nrf_cleanup.c.obj
[12/29] Building C object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
[13/29] Building C object zephyr/CMakeFiles/zephyr.dir/home/entwicklung/ncs/v2.5.0/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[14/29] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
[15/29] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/malloc.c.obj
[16/29] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
[17/29] Building C object zephyr/soc/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[18/29] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/home/entwicklung/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
[19/29] Linking C static library zephyr/lib/libc/common/liblib__libc__common.a
[20/29] Linking C static library zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a
[21/29] Linking C static library app/libapp.a
[22/29] Generating linker_zephyr_pre0.cmd
[23/29] Linking C static library modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a
[29/29] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       22232 B        48 KB     45.23%
             RAM:       18368 B       256 KB      7.01%
        IDT_LIST:          0 GB         2 KB      0.00%
[409/489] Linking C static library zephyr/kernel/libkernel.a
[410/487] Performing build step for 'chip-gn'
Starting Matter library build in /home/entwicklung/matter_apps/light_occ/build_1/modules/connectedhomeip
Done. Made 198 targets from 186 files in 785ms
[1/327] c++ obj/src/app/libCHIPDataModel.FailSafeContext.cpp.o
[2/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeDataIB.cpp.o
[3/327] c++ obj/src/app/libCHIPDataModel.WriteClient.cpp.o
[4/327] c++ obj/src/app/libCHIPDataModel.EventManagement.cpp.o
[5/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ArrayParser.cpp.o
[6/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeDataIBs.cpp.o
[7/327] c++ obj/src/app/libCHIPDataModel.WriteHandler.cpp.o
[8/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributePathIB.cpp.o
[9/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributePathIBs.cpp.o
[10/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeReportIBs.cpp.o
[11/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeStatusIB.cpp.o
[12/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeReportIB.cpp.o
[13/327] c++ obj/src/app/libCHIPDataModel.InteractionModelEngine.cpp.o
[14/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ClusterPathIB.cpp.o
[15/327] c++ obj/src/access/libaccess.AccessControl.cpp.o
[16/327] c++ obj/src/access/examples/libaccess.PermissiveAccessControlDelegate.cpp.o
[17/327] c++ obj/src/access/examples/libaccess.ExampleAccessControlDelegate.cpp.o
[18/327] c++ obj/src/app/libCHIPDataModel.AttributeAccessInterface.cpp.o
[19/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ArrayBuilder.cpp.o
[20/327] c++ obj/examples/providers/libMatterDeviceInfoProviderExample.DeviceInfoProviderImpl.cpp.o
[21/327] c++ obj/src/app/libCHIPDataModel.CASEClient.cpp.o
[22/327] c++ obj/src/app/libCHIPDataModel.BufferedReadCallback.cpp.o
[23/327] c++ obj/src/app/libCHIPDataModel.ChunkedWriteCallback.cpp.o
[24/327] c++ obj/src/app/libCHIPDataModel.AttributePathExpandIterator.cpp.o
[25/327] c++ obj/src/app/libCHIPDataModel.CASESessionManager.cpp.o
[26/327] c++ obj/src/app/libCHIPDataModel.DefaultAttributePersistenceProvider.cpp.o
[27/327] c++ obj/src/app/libCHIPDataModel.DeviceProxy.cpp.o
[28/327] c++ obj/src/app/libCHIPDataModel.DeferredAttributePersistenceProvider.cpp.o
[29/327] c++ obj/src/credentials/libCredentials.DeviceAttestationCredsProvider.cpp.o
[30/327] c++ obj/src/app/libCHIPDataModel.CommandSender.cpp.o
[31/327] c++ obj/src/app/libCHIPDataModel.CommandHandler.cpp.o
[32/327] c++ obj/src/credentials/libCredentials.LastKnownGoodTime.cpp.o
[33/327] c++ obj/src/credentials/attestation_verifier/libCredentials.DeviceAttestationVerifier.cpp.o
[34/327] c++ obj/src/app/libCHIPDataModel.ClusterStateCache.cpp.o
[35/327] c++ obj/src/credentials/libCredentials.PersistentStorageOpCertStore.cpp.o
[36/327] c++ obj/src/credentials/libCredentials.FabricTable.cpp.o
[37/327] c++ obj/src/credentials/examples/libCredentials.ExampleDACs.cpp.o
[38/327] c++ obj/src/credentials/examples/libCredentials.ExamplePAI.cpp.o
[39/327] c++ obj/src/credentials/libCredentials.GroupDataProviderImpl.cpp.o
[40/327] c++ obj/src/credentials/examples/libCredentials.DeviceAttestationCredsExample.cpp.o
[41/327] c++ obj/src/credentials/tests/libCredentials.CHIPAttCert_test_vectors.cpp.o
[42/327] c++ obj/src/ble/libBleLayer.BleUUID.cpp.o
[43/327] c++ obj/src/ble/libBleLayer.BleError.cpp.o
[44/327] c++ obj/src/credentials/attestation_verifier/libDefaultAttestationVerifier.DefaultDeviceAttestationVerifier.cpp.o
[45/327] c++ obj/src/ble/libBleLayer.BtpEngine.cpp.o
[46/327] c++ obj/src/app/MessageDef/libCHIPDataModel.AttributeStatusIBs.cpp.o
[47/327] c++ obj/src/app/MessageDef/libCHIPDataModel.Builder.cpp.o
[48/327] c++ obj/src/ble/libBleLayer.BLEEndPoint.cpp.o
[49/327] c++ obj/src/credentials/libCredentials.CHIPCertFromX509.cpp.o
[50/327] c++ obj/src/app/MessageDef/libCHIPDataModel.CommandDataIB.cpp.o
[51/327] c++ obj/src/app/MessageDef/libCHIPDataModel.CommandPathIB.cpp.o
[52/327] c++ obj/src/app/MessageDef/libCHIPDataModel.CommandStatusIB.cpp.o
[53/327] c++ obj/src/app/MessageDef/libCHIPDataModel.DataVersionFilterIB.cpp.o
[54/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventFilterIB.cpp.o
[55/327] c++ obj/src/app/MessageDef/libCHIPDataModel.DataVersionFilterIBs.cpp.o
[56/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventDataIB.cpp.o
[57/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventFilterIBs.cpp.o
[58/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventPathIBs.cpp.o
[59/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventReportIB.cpp.o
[60/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventPathIB.cpp.o
[61/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventReportIBs.cpp.o
[62/327] c++ obj/src/app/MessageDef/libCHIPDataModel.EventStatusIB.cpp.o
[63/327] c++ obj/src/app/MessageDef/libCHIPDataModel.InvokeRequests.cpp.o
[64/327] c++ obj/src/app/MessageDef/libCHIPDataModel.InvokeRequestMessage.cpp.o
[65/327] c++ obj/src/app/MessageDef/libCHIPDataModel.InvokeResponseIB.cpp.o
[66/327] c++ obj/src/app/MessageDef/libCHIPDataModel.MessageBuilder.cpp.o
[67/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ListParser.cpp.o
[68/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ListBuilder.cpp.o
[69/327] c++ obj/src/app/MessageDef/libCHIPDataModel.InvokeResponseIBs.cpp.o
[70/327] c++ obj/src/app/MessageDef/libCHIPDataModel.MessageDefHelper.cpp.o
[71/327] c++ obj/src/app/MessageDef/libCHIPDataModel.InvokeResponseMessage.cpp.o
[72/327] c++ obj/src/app/MessageDef/libCHIPDataModel.MessageParser.cpp.o
[73/327] c++ obj/src/app/MessageDef/libCHIPDataModel.Parser.cpp.o
[74/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ReadRequestMessage.cpp.o
[75/327] c++ obj/src/app/MessageDef/libCHIPDataModel.ReportDataMessage.cpp.o
[76/327] c++ obj/src/app/MessageDef/libCHIPDataModel.StructBuilder.cpp.o
[77/327] c++ obj/src/app/MessageDef/libCHIPDataModel.StructParser.cpp.o
[78/327] c++ obj/src/app/MessageDef/libCHIPDataModel.StatusIB.cpp.o
[79/327] c++ obj/src/app/MessageDef/libCHIPDataModel.StatusResponseMessage.cpp.o
[80/327] c++ obj/src/app/MessageDef/libCHIPDataModel.SubscribeRequestMessage.cpp.o
[81/327] c++ obj/src/app/MessageDef/libCHIPDataModel.SubscribeResponseMessage.cpp.o
[82/327] c++ obj/src/app/MessageDef/libCHIPDataModel.WriteRequestMessage.cpp.o
[83/327] c++ obj/src/app/MessageDef/libCHIPDataModel.TimedRequestMessage.cpp.o
[84/327] c++ obj/src/app/MessageDef/libCHIPDataModel.WriteResponseMessage.cpp.o
[85/327] c++ obj/src/app/libCHIPDataModel.OperationalSessionSetup.cpp.o
[86/327] c++ obj/src/app/libCHIPDataModel.RequiredPrivilege.cpp.o
[87/327] c++ obj/src/app/libCHIPDataModel.StatusResponse.cpp.o
[88/327] c++ obj/src/app/libCHIPDataModel.ReadHandler.cpp.o
[89/327] c++ obj/src/app/libCHIPDataModel.ReadClient.cpp.o
[90/327] c++ obj/src/app/libCHIPDataModel.TimedRequest.cpp.o
[91/327] c++ obj/src/app/libCHIPDataModel.TimedHandler.cpp.o
[92/327] c++ obj/src/app/server/libCHIPAppServer.DefaultAclStorage.cpp.o
[93/327] c++ obj/src/app/server/libCHIPAppServer.EchoHandler.cpp.o
[94/327] c++ obj/src/app/reporting/libCHIPDataModel.Engine.cpp.o
[95/327] c++ obj/src/crypto/libChipCrypto.RandUtils.cpp.o
[96/327] c++ obj/src/app/server/libCHIPAppServer.AclStorage.cpp.o
[97/327] c++ obj/src/app/server/libCHIPAppServer.Dnssd.cpp.o
[98/327] c++ obj/src/ble/libBleLayer.BleLayer.cpp.o
[99/327] c++ obj/src/app/server/libCHIPAppServer.OnboardingCodesUtil.cpp.o
[100/327] c++ obj/src/app/server/libCHIPAppServer.Server.cpp.o
[101/327] c++ obj/src/credentials/libCredentials.GenerateChipX509Cert.cpp.o
[102/327] c++ obj/src/app/server/libCHIPAppServer.CommissioningWindowManager.cpp.o
[103/327] c++ obj/src/credentials/libCredentials.CHIPCert.cpp.o
[104/327] c++ obj/src/credentials/libCredentials.CHIPCertToX509.cpp.o
[105/327] c++ obj/src/crypto/libChipCrypto.PersistentStorageOperationalKeystore.cpp.o
[106/327] c++ obj/src/credentials/libCredentials.DeviceAttestationConstructor.cpp.o
[107/327] c++ obj/src/crypto/libChipCrypto.RawKeySessionKeystore.cpp.o
[108/327] c++ obj/src/credentials/libCredentials.CertificationDeclaration.cpp.o
[109/327] c++ obj/src/credentials/attestation_verifier/libDefaultAttestationVerifier.DacOnlyPartialAttestationVerifier.cpp.o
[110/327] c++ obj/src/lib/asn1/libASN1.ASN1OID.cpp.o
[111/327] c++ obj/src/crypto/libChipCrypto.CHIPCryptoPAL.cpp.o
[112/327] c++ obj/src/inet/libInetLayer.IPAddress-StringFuncts.cpp.o
[113/327] c++ obj/src/lib/shell/libCHIPShell.MainLoopZephyr.cpp.o
[114/327] c++ obj/src/inet/libInetLayer.IPAddress.cpp.o
[115/327] c++ obj/src/inet/libInetLayer.IPPacketInfo.cpp.o
[116/327] c++ obj/src/lib/asn1/libASN1.ASN1Reader.cpp.o
[117/327] c++ obj/src/lib/asn1/libASN1.ASN1Time.cpp.o
[118/327] c++ obj/src/crypto/cryptopal_mbedtls.CHIPCryptoPALmbedTLS.cpp.o
[119/327] c++ obj/src/lib/asn1/libASN1.ASN1Error.cpp.o
[120/327] c++ obj/src/inet/libInetLayer.UDPEndPointImplSockets.cpp.o
[121/327] c++ obj/src/inet/libInetLayer.IPPrefix.cpp.o
[122/327] c++ obj/src/lib/address_resolve/address_resolve.AddressResolve_DefaultImpl.cpp.o
[123/327] c++ obj/src/inet/libInetLayer.InetArgParser.cpp.o
[124/327] c++ obj/src/inet/libInetLayer.UDPEndPoint.cpp.o
[125/327] c++ obj/src/inet/libInetLayer.InetError.cpp.o
[126/327] c++ obj/src/inet/libInetLayer.InetInterface.cpp.o
[127/327] c++ obj/src/lib/core/libChipCore.CHIPError.cpp.o
[128/327] c++ obj/src/lib/core/libChipCore.TLVWriter.cpp.o
[129/327] c++ obj/src/lib/core/libChipCore.TLVUtilities.cpp.o
[130/327] c++ obj/src/lib/address_resolve/address_resolve.AddressResolve.cpp.o
[131/327] c++ obj/src/lib/core/libChipCore.CHIPKeyIds.cpp.o
[132/327] c++ obj/src/lib/core/libChipCore.OTAImageHeader.cpp.o
[133/327] c++ obj/src/lib/core/libChipCore.TLVDebug.cpp.o
[134/327] c++ obj/src/lib/core/libChipCore.TLVCircularBuffer.cpp.o
[135/327] c++ obj/src/lib/support/libSupportLayer.BytesCircularBuffer.cpp.o
[136/327] c++ obj/src/lib/dnssd/dnssd.Discovery_ImplPlatform.cpp.o
[137/327] c++ obj/src/lib/support/libSupportLayer.Base64.cpp.o
[138/327] c++ obj/src/lib/core/libChipCore.TLVUpdater.cpp.o
[139/327] c++ obj/src/lib/asn1/libASN1.ASN1Writer.cpp.o
[140/327] c++ obj/src/lib/support/libSupportLayer.BufferWriter.cpp.o
[141/327] c++ obj/src/lib/support/libSupportLayer.BufferReader.cpp.o
[142/327] c++ obj/src/lib/support/libSupportLayer.CHIPPlatformMemory.cpp.o
[143/327] c++ obj/src/lib/core/libChipCore.TLVReader.cpp.o
[144/327] c++ obj/src/lib/support/libSupportLayer.FixedBufferAllocator.cpp.o
[145/327] c++ obj/src/lib/support/libSupportLayer.BytesToHex.cpp.o
[146/327] c++ obj/src/lib/support/libSupportLayer.FibonacciUtils.cpp.o
[147/327] c++ obj/zzz_generated/app-common/app-common/zap-generated/libClusterObjects.cluster-objects.cpp.o
[148/327] c++ obj/src/lib/support/libSupportLayer.CHIPMem.cpp.o
[149/327] c++ obj/src/lib/support/libSupportLayer.ErrorStr.cpp.o
[150/327] c++ obj/src/lib/shell/commands/commands.Help.cpp.o
[151/327] c++ obj/src/lib/support/libSupportLayer.IniEscaping.cpp.o
[152/327] c++ obj/src/lib/support/libSupportLayer.PersistentStorageAudit.cpp.o
[153/327] c++ obj/src/lib/support/libSupportLayer.Pool.cpp.o
[154/327] c++ obj/src/lib/support/logging/libSupportLayer.CHIPLogging.cpp.o
[155/327] c++ obj/src/lib/support/libSupportLayer.CHIPArgParser.cpp.o
[156/327] c++ obj/src/lib/shell/libCHIPShell.streamer_zephyr.cpp.o
[157/327] c++ obj/src/lib/dnssd/dnssd.IPAddressSorter.cpp.o
[158/327] c++ obj/src/lib/dnssd/dnssd.ServiceNaming.cpp.o
[159/327] c++ obj/src/lib/shell/shell_core.streamer.cpp.o
[160/327] c++ obj/src/lib/shell/commands/commands.Base64.cpp.o
[161/327] c++ obj/src/lib/dnssd/dnssd.TxtFields.cpp.o
[162/327] c++ obj/src/lib/shell/shell_core.Engine.cpp.o
[163/327] c++ obj/src/lib/shell/commands/commands.Config.cpp.o
[164/327] c++ obj/src/lib/shell/commands/commands.Meta.cpp.o
[165/327] c++ obj/src/lib/shell/commands/commands.OnboardingCodes.cpp.o
[166/327] c++ obj/src/lib/shell/commands/commands.Device.cpp.o
[167/327] c++ obj/src/lib/support/libSupportLayer.PrivateHeap.cpp.o
[168/327] c++ obj/src/lib/support/libSupportLayer.SerializableIntegerSet.cpp.o
[169/327] c++ obj/src/lib/shell/commands/commands.BLE.cpp.o
[170/327] c++ obj/src/lib/support/libSupportLayer.TimeUtils.cpp.o
[171/327] c++ obj/src/lib/support/libSupportLayer.ThreadOperationalDataset.cpp.o
[172/327] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff.cpp.o
[173/327] c++ obj/src/lib/shell/commands/commands.NFC.cpp.o
[174/327] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff10.cpp.o
[175/327] c++ obj/src/lib/support/libSupportLayer.ZclString.cpp.o
[176/327] c++ obj/src/lib/shell/commands/commands.Dns.cpp.o
[177/327] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff32.cpp.o
[178/327] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff16.cpp.o
[179/327] c++ obj/src/lib/shell/commands/commands.Ota.cpp.o
[180/327] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff36.cpp.o
[181/327] c++ obj/src/messaging/libMessagingLayer.ErrorCategory.cpp.o
[182/327] c++ obj/src/lib/support/libSupportLayer.CHIPMem-Malloc.cpp.o
[183/327] c++ obj/src/messaging/libMessagingLayer.ApplicationExchangeDispatch.cpp.o
[184/327] c++ obj/src/platform/nrfconnect.SingletonConfigurationManager.cpp.o
[185/327] c++ obj/src/messaging/libMessagingLayer.ExchangeMessageDispatch.cpp.o
[186/327] c++ obj/src/messaging/libMessagingLayer.ReliableMessageMgr.cpp.o
[187/327] c++ obj/src/messaging/libMessagingLayer.ExchangeContext.cpp.o
[188/327] c++ obj/src/messaging/libMessagingLayer.ExchangeMgr.cpp.o
[189/327] c++ obj/src/platform/libDeviceLayer.CommissionableDataProvider.cpp.o
[190/327] c++ obj/src/messaging/libMessagingLayer.ReliableMessageContext.cpp.o
[191/327] c++ obj/src/platform/libDeviceLayer.DeviceInstanceInfoProvider.cpp.o
[192/327] c++ obj/src/platform/libDeviceLayer.DeviceControlServer.cpp.o
[193/327] c++ obj/src/platform/libDeviceLayer.PlatformEventSupport.cpp.o
[194/327] c++ obj/src/messaging/libMessagingLayer.ReliableMessageProtocolConfig.cpp.o
[195/327] c++ obj/src/platform/libDeviceLayer.Entropy.cpp.o
[196/327] c++ obj/src/platform/libDeviceLayer.DeviceInfoProvider.cpp.o
[197/327] c++ obj/src/platform/libDeviceLayer.LockTracker.cpp.o
[198/327] c++ obj/src/platform/libDeviceLayer.DiagnosticDataProvider.cpp.o
[199/327] c++ obj/src/platform/Zephyr/nrfconnect.BLEAdvertisingArbiter.cpp.o
[200/327] c++ obj/src/platform/libDeviceLayer.GeneralUtils.cpp.o
[201/327] c++ obj/src/platform/Zephyr/nrfconnect.BLEManagerImpl.cpp.o
[202/327] c++ obj/src/platform/libDeviceLayer.PersistedStorage.cpp.o
[203/327] c++ obj/src/platform/libDeviceLayer.Globals.cpp.o
[204/327] c++ obj/src/platform/OpenThread/libDeviceLayer.GenericNetworkCommissioningThreadDriver.cpp.o
[205/327] c++ obj/src/platform/Zephyr/nrfconnect.Logging.cpp.o
[206/327] c++ obj/src/platform/Zephyr/nrfconnect.ConfigurationManagerImpl.cpp.o
[207/327] c++ obj/src/platform/Zephyr/nrfconnect.KeyValueStoreManagerImpl.cpp.o
[208/327] c++ obj/src/platform/Zephyr/nrfconnect.SystemTimeSupport.cpp.o
[209/327] cc obj/src/platform/nrfconnect/nrfconnect.FactoryDataParser.c.o
[210/327] c++ obj/src/platform/nrfconnect/nrfconnect.Reboot.cpp.o
[211/327] c++ obj/src/platform/Zephyr/nrfconnect.PlatformManagerImpl.cpp.o
[212/327] c++ obj/src/platform/Zephyr/nrfconnect.ZephyrConfig.cpp.o
[213/327] c++ obj/src/platform/Zephyr/nrfconnect.DiagnosticDataProviderImpl.cpp.o
[214/327] c++ obj/src/platform/nrfconnect/nrfconnect.ConnectivityManagerImpl.cpp.o
[215/327] c++ obj/src/platform/nrfconnect/nrfconnect.DiagnosticDataProviderImplNrf.cpp.o
[216/327] c++ obj/src/system/libSystemLayer.TLVPacketBufferBackingStore.cpp.o
[217/327] c++ obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o
FAILED: obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o 
ccache /home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -MMD -MF obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o.d -Wconversion -mthumb -Os -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Werror -Wstack-usage=8192 -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -D_POSIX_C_SOURCE=200809 -DMBEDTLS_CONFIG_FILE=\<nrf-config.h\> -fmacro-prefix-map=../../../../../ncs/v2.5.0/modules/lib/matter/= -std=gnu++14 -fno-rtti -Wnon-virtual-dtor -isystem/home/entwicklung/ncs/v2.5.0/nrf/drivers/mpsl/clock_control -isystem/home/entwicklung/ncs/v2.5.0/zephyr/include -isystem/home/entwicklung/matter_apps/light_occ/build_1/zephyr/include/generated -isystem/home/entwicklung/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf52 -isystem/home/entwicklung/ncs/v2.5.0/zephyr/lib/libc/newlib/include -isystem/home/entwicklung/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -isystem/home/entwicklung/ncs/v2.5.0/zephyr/subsys/bluetooth -isystem/home/entwicklung/ncs/v2.5.0/zephyr/subsys/net/lib/sockets/. -isystem/home/entwicklung/ncs/v2.5.0/zephyr/subsys/settings/include -isystem/home/entwicklung/ncs/v2.5.0/nrf/include -isystem/home/entwicklung/ncs/v2.5.0/nrf/lib/multithreading_lock/. -isystem/home/entwicklung/ncs/v2.5.0/nrf/subsys/bluetooth/controller/. -isystem/home/entwicklung/ncs/v2.5.0/zephyr/drivers/flash -isystem/home/entwicklung/ncs/v2.5.0/nrf/tests/include -isystem/home/entwicklung/ncs/v2.5.0/zephyr/modules/openthread/platform/. -isystem/home/entwicklung/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -isystem/home/entwicklung/ncs/v2.5.0/zephyr/modules/cmsis/. -isystem/home/entwicklung/ncs/v2.5.0/modules/hal/nordic/nrfx -isystem/home/entwicklung/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -isystem/home/entwicklung/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -isystem/home/entwicklung/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -isystem/home/entwicklung/ncs/v2.5.0/modules/debug/segger/SEGGER -isystem/home/entwicklung/ncs/v2.5.0/modules/debug/segger/Config -isystem/home/entwicklung/ncs/v2.5.0/modules/lib/zcbor/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/nfc/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/common/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/simple_gpio/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/include/protocol -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/include/protocol -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/openthread/include -isystem/home/entwicklung/matter_apps/light_occ/build_1/modules/nrf/subsys/nrf_security/src/include/generated -isystem/home/entwicklung/ncs/v2.5.0/nrf/subsys/nrf_security/include -isystem/home/entwicklung/ncs/v2.5.0/nrf/ext/oberon/psa/core/include -isystem/home/entwicklung/ncs/v2.5.0/nrf/ext/oberon/psa/core/library -isystem/home/entwicklung/ncs/v2.5.0/modules/crypto/mbedtls/include -isystem/home/entwicklung/ncs/v2.5.0/modules/crypto/mbedtls/library -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/include/ -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem/home/entwicklung/ncs/v2.5.0/nrf/ext/oberon/psa/drivers -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/nrf_802154/driver/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/nrf_802154/sl/include -isystem/home/entwicklung/ncs/v2.5.0/nrfxlib/nrf_802154/common/include -DKERNEL -D__ZEPHYR__=1 -D_FORTIFY_SOURCE=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -DNRF52840_XXAA -DZCBOR_ASSERTS -fno-strict-aliasing -fcheck-new -std=c++14 -fno-exceptions -fno-rtti -imacros/home/entwicklung/matter_apps/light_occ/build_1/zephyr/include/generated/autoconf.h -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros/home/entwicklung/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -fno-pic -fno-pie --param=min-pagesize=0 -fmacro-prefix-map=/home/entwicklung/matter_apps/light_occ=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/entwicklung/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/entwicklung/ncs/v2.5.0=WEST_TOPDIR -specs=nano.specs -D_POSIX_THREADS -std=gnu++14 -DNDEBUG -DCHIP_HAVE_CONFIG_H=1 -I../../../../../ncs/v2.5.0/modules/lib/matter/src/include -I../../../../../ncs/v2.5.0/modules/lib/matter/src -Igen/include -I../../../../../ncs/v2.5.0/modules/lib/matter/zzz_generated/app-common -I../../../../../ncs/v2.5.0/modules/lib/matter/third_party/nlassert/repo/include -I../../../../../ncs/v2.5.0/modules/lib/matter/third_party/nlio/repo/include -c ../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.cpp -o obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o
In file included from ../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.cpp:18:
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: In member function 'CHIP_ERROR chip::DeviceLayer::InternalFlashFactoryData::GetFactoryDataPartition(uint8_t*&, size_t&)':
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:38:48: error: 'PM_FACTORY_DATA_ADDRESS' was not declared in this scope
   38 |         data     = reinterpret_cast<uint8_t *>(PM_FACTORY_DATA_ADDRESS);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:39:20: error: 'PM_FACTORY_DATA_SIZE' was not declared in this scope
   39 |         dataSize = PM_FACTORY_DATA_SIZE;
      |                    ^~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: In member function 'constexpr size_t chip::DeviceLayer::InternalFlashFactoryData::FactoryDataBlockBegin()':
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:54:16: error: 'PM_FACTORY_DATA_ADDRESS' was not declared in this scope
   54 |         return PM_FACTORY_DATA_ADDRESS & (-CONFIG_FPROTECT_BLOCK_SIZE);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: In member function 'constexpr size_t chip::DeviceLayer::InternalFlashFactoryData::FactoryDataBlockSize()':
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:62:14: error: 'PM_FACTORY_DATA_ADDRESS' was not declared in this scope
   62 |             (PM_FACTORY_DATA_ADDRESS + PM_FACTORY_DATA_SIZE + CONFIG_FPROTECT_BLOCK_SIZE - 1) & (-CONFIG_FPROTECT_BLOCK_SIZE);
      |              ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:62:40: error: 'PM_FACTORY_DATA_SIZE' was not declared in this scope
   62 |             (PM_FACTORY_DATA_ADDRESS + PM_FACTORY_DATA_SIZE + CONFIG_FPROTECT_BLOCK_SIZE - 1) & (-CONFIG_FPROTECT_BLOCK_SIZE);
      |                                        ^~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:63:44: error: non-constant condition for static assertion
   63 |         static_assert(kFactoryDataBlockEnd <= PM_SETTINGS_STORAGE_ADDRESS,
      |                                            ^
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: At global scope:
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:102:32: error: 'PM_FACTORY_DATA_SIZE' was not declared in this scope
  102 |     uint8_t mFactoryDataBuffer[PM_FACTORY_DATA_SIZE];
      |                                ^~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: In member function 'CHIP_ERROR chip::DeviceLayer::ExternalFlashFactoryData::GetFactoryDataPartition(uint8_t*&, size_t&)':
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:86:44: error: 'PM_FACTORY_DATA_ADDRESS' was not declared in this scope
   86 |         int ret = flash_read(mFlashDevice, PM_FACTORY_DATA_ADDRESS, mFactoryDataBuffer, PM_FACTORY_DATA_SIZE);
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:86:69: error: 'mFactoryDataBuffer' was not declared in this scope
   86 |         int ret = flash_read(mFlashDevice, PM_FACTORY_DATA_ADDRESS, mFactoryDataBuffer, PM_FACTORY_DATA_SIZE);
      |                                                                     ^~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:86:89: error: 'PM_FACTORY_DATA_SIZE' was not declared in this scope
   86 |         int ret = flash_read(mFlashDevice, PM_FACTORY_DATA_ADDRESS, mFactoryDataBuffer, PM_FACTORY_DATA_SIZE);
      |                                                                                         ^~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h: At global scope:
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:171:62: error: 'PM_FACTORY_DATA_SIZE' was not declared in this scope
  171 |     static constexpr uint16_t kFactoryDataPartitionSize    = PM_FACTORY_DATA_SIZE;
      |                                                              ^~~~~~~~~~~~~~~~~~~~
../../../../../ncs/v2.5.0/modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:172:62: error: 'PM_FACTORY_DATA_ADDRESS' was not declared in this scope
  172 |     static constexpr uint32_t kFactoryDataPartitionAddress = PM_FACTORY_DATA_ADDRESS;
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
[218/327] c++ obj/src/platform/OpenThread/nrfconnect.OpenThreadUtils.cpp.o
[219/327] c++ obj/src/platform/OpenThread/nrfconnect.DnssdImpl.cpp.o
[220/327] c++ obj/src/platform/Zephyr/nrfconnect.SysHeapMalloc.cpp.o
[221/327] c++ obj/src/platform/Zephyr/nrfconnect.NFCManagerImpl.cpp.o
[222/327] c++ obj/src/platform/Zephyr/nrfconnect.ThreadStackManagerImpl.cpp.o
ninja: build stopped: subcommand failed.
FAILED: modules/connectedhomeip/src/chip-gn-stamp/chip-gn-build modules/connectedhomeip/args.gn modules/connectedhomeip/build.ninja modules/connectedhomeip/.ninja_deps modules/connectedhomeip/build.ninja.stamp modules/connectedhomeip/lib/libCHIP.a modules/connectedhomeip/lib/libCHIPShell.a modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a 
cd /home/entwicklung/matter_apps/light_occ/build_1/modules/connectedhomeip && /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake -E echo "Starting Matter library build in /home/entwicklung/matter_apps/light_occ/build_1/modules/connectedhomeip" && /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/python3.8 /home/entwicklung/ncs/v2.5.0/modules/lib/matter/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp && /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake -E compare_files args.gn.tmp args.gn || /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake -E rename args.gn.tmp args.gn && /home/entwicklung/ncs/toolchains/7795df4459/opt/bin/gn --root=/home/entwicklung/ncs/v2.5.0/modules/lib/matter --root-target=/home/entwicklung/ncs/v2.5.0/modules/lib/matter/config/nrfconnect/chip-gn --dotfile=/home/entwicklung/ncs/v2.5.0/modules/lib/matter/config/nrfconnect/chip-gn/.gn --script-executable=/home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/python3.8 gen --check --fail-on-unused-args /home/entwicklung/matter_apps/light_occ/build_1/modules/connectedhomeip && ninja && /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake -E echo "Matter library build complete"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake --build /home/entwicklung/matter_apps/light_occ/build_1

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

It would be very helpful if someone could point me in the right direction.

Parents
  • Another issue has come up, because during building I receive an error that the flash partition is overflowing. The overflow seems to be static with changes I make, and its 354292 bytes. This is confusing me because the custom board uses the same 1MB internal flash as the devkit. And my firmware uses around 85% of that.

    i have attached the proj.conf and the overlay file for the custom board.

    Looking into this some more, I believe this is a partitioning issue related to mcuboot, but I am not certain.

    error log

    [487/504] Building CXX object CMakeFiles/app.dir/home/entwicklung/ncs/v2.5.0/modules/lib/matter/src/app/util/util.cpp.obj
    [488/504] Linking CXX static library app/libapp.a
    [489/504] Linking CXX executable zephyr/zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map 
    : && ccache /home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++  -gdwarf-4 -Wl,--whole-archive /home/entwicklung/matter_apps/light_occ/build_1/modules/connectedhomeip/lib/libCHIPShell.a -Wl,--no-whole-archive -Wl,--wrap=malloc -Wl,--wrap=calloc -Wl,--wrap=realloc -Wl,--wrap=free -Wl,--wrap=_malloc_r -Wl,--wrap=_calloc_r -Wl,--wrap=_realloc_r -Wl,--wrap=_free_r zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/entwicklung/matter_apps/light_occ/build_1/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/newlib/liblib__libc__newlib.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/lib/posix/liblib__posix.a  zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/soc/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a  zephyr/subsys/random/libsubsys__random.a  zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a  zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a  zephyr/subsys/dfu/boot/libsubsys__dfu__boot.a  zephyr/subsys/net/libsubsys__net.a  zephyr/subsys/net/l2/openthread/libsubsys__net__ip__l2__openthread.a  zephyr/subsys/net/ip/libsubsys__net__ip.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/entropy/libdrivers__entropy.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/ieee802154/libdrivers__ieee802154.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/pwm/libdrivers__pwm.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/dk_buttons_and_leds/lib..__nrf__lib__dk_buttons_and_leds.a  modules/nrf/lib/multithreading_lock/lib..__nrf__lib__multithreading_lock.a  modules/nrf/subsys/bluetooth/controller/lib..__nrf__subsys__bluetooth__controller.a  modules/nrf/subsys/nrf_security/src/zephyr/libmbedtls_zephyr.a  modules/nrf/subsys/dfu/dfu_multi_image/lib..__nrf__subsys__dfu__dfu_multi_image.a  modules/nrf/subsys/dfu/dfu_target/lib..__nrf__subsys__dfu__dfu_target.a  modules/nrf/subsys/mpsl/init/lib..__nrf__subsys__mpsl__init.a  modules/nrf/subsys/mpsl/fem/lib..__nrf__subsys__mpsl__fem.a  modules/nrf/subsys/nfc/ndef/lib..__nrf__subsys__nfc__ndef.a  modules/nrf/subsys/nfc/lib/lib..__nrf__subsys__nfc__lib.a  modules/nrf/subsys/ieee802154/lib..__nrf__subsys__ieee802154.a  modules/nrf/drivers/mpsl/clock_control/lib..__nrf__drivers__mpsl__clock_control.a  modules/nrf/drivers/mpsl/flash_sync/lib..__nrf__drivers__mpsl__flash_sync.a  modules/nrf/drivers/mpsl/temp_nrf5/lib..__nrf__drivers__mpsl__temp_nrf5.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/openthread/platform/libopenthread_platform.a  modules/hal_nordic/nrf_802154/libnrf-802154-platform.a  modules/nrfxlib/nrf_802154/nrf_802154/driver/libnrf-802154-driver.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  modules/zcbor/libmodules__zcbor.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/openthread/lib/cortex-m4/hard-float/v1.3/ftd/oberon/libopenthread-ftd.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L"/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard"  -L/home/entwicklung/matter_apps/light_occ/build_1/zephyr  -lgcc  -Wl,--start-group  modules/connectedhomeip/lib/libCHIP.a  modules/connectedhomeip/lib/libCHIPShell.a  modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a  -Wl,--end-group  zephyr/arch/common/libisr_tables.a  modules/nrfxlib/nrf_802154/nrf_802154/common/libnrf-802154-common.a  modules/hal_nordic/nrf_802154/libnrf-802154-platform.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/nrf_802154/sl/sl/lib/nRF52840/hard-float/libnrf-802154-sl.a  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -lstdc++  -Wl,-no-pie  -lm  -Wl,-lc  -L"/home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi"/lib/thumb/v7e-m+fp/hard  -Wl,-lgcc  -lc  -specs=nano.specs  modules/nrf/subsys/nrf_security/src/libmbedtls.a  modules/nrf/subsys/nrf_security/src/libmbedx509.a  modules/nrf/subsys/nrf_security/src/libmbedcrypto.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.18.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m4/hard-float/liboberon_mbedtls_3.0.13.a  modules/nrf/subsys/nrf_security/src/libmbedcrypto_base.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -lc  /home/entwicklung/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m4/hard-float/liboberon_3.0.13.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/nfc/lib/cortex-m4/hard-float/libnfc_t2t.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/softdevice_controller/lib/cortex-m4/hard-float/libsoftdevice_controller_peripheral.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/common/lib/cortex-m4/hard-float/libmpsl_fem_common.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/nrf21540_gpio/lib/cortex-m4/hard-float/libmpsl_fem_nrf21540_gpio.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/lib/cortex-m4/hard-float/libmpsl_fem_nrf21540_gpio_spi.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/fem/simple_gpio/lib/cortex-m4/hard-float/libmpsl_fem_simple_gpio.a  /home/entwicklung/ncs/v2.5.0/nrfxlib/mpsl/lib/cortex-m4/hard-float/libmpsl.a && cd /home/entwicklung/matter_apps/light_occ/build_1/zephyr && /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake -E true
    /home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH'
    /home/entwicklung/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 354292 bytes
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /home/entwicklung/ncs/toolchains/7795df4459/usr/local/bin/cmake --build /home/entwicklung/matter_apps/light_occ/build_1
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    pan1780_evb.dts

    /*
     * PAN1780 EVB configuration
     *
     * Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
     * SPDX-License-Identifier: Apache-2.0
     */
    
    /dts-v1/;
    #include <nordic/nrf52840_qiaa.dtsi>
    #include "pan1780_evb-pinctrl.dtsi"
    #include <zephyr/dt-bindings/input/input-event-codes.h>
    
    / {
    	model = "pan1780-evb";
    	compatible = "panasonic-industrial-devices-europe-gmbh,pan1780-evb";
    
    	chosen {
    		zephyr,console = &uart0;
    		zephyr,shell-uart = &uart0;
    		zephyr,uart-mcumgr = &uart0;
    		zephyr,bt-mon-uart = &uart0;
    		zephyr,bt-c2h-uart = &uart0;
    		zephyr,sram = &sram0;
    		zephyr,flash = &flash0;
    		zephyr,code-partition = &slot0_partition;
    		zephyr,ieee802154 = &ieee802154;
    	};
    
    	leds {
    		compatible = "gpio-leds";
    		evb_led1: evb_led_1 {
    			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
    			label = "LED1 on EVB";
    		};
    		evb_led2: evb_led_2 {
    			gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
    			label = "LED2 on EVB";
    		};
    		evb_led3: evb_led_3 {
    			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
    			label = "LED3 on EVB";
    		};
    		evb_led4: evb_led_4 {
    			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
    			label = "LED4 on EVB";
    		};
    	};
    
    	pwmleds {
    		compatible = "pwm-leds";
    		pwm_evb_led1: pwm_evb_led_1 {
    			pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
    		};
    	};
    
    	buttons {
    		compatible = "gpio-keys";
    		evb_sw1: evb_sw_1 {
    			gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "SW1 on EVB";
    			zephyr,code = <INPUT_KEY_0>;
    		};
    		evb_sw2: evb_sw_2 {
    			gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "SW2 on EVB";
    			zephyr,code = <INPUT_KEY_1>;
    		};
    		evb_sw3: evb_sw_3 {
    			gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "SW3 on EVB";
    			zephyr,code = <INPUT_KEY_2>;
    		};
    		evb_sw4: evb_sw_4 {
    			gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "SW4 on EVB";
    			zephyr,code = <INPUT_KEY_3>;
    		};
    	};
    
    	arduino_header: connector {
    		compatible = "arduino-header-r3";
    		#gpio-cells = <2>;
    		gpio-map-mask = <0xffffffff 0xffffffc0>;
    		gpio-map-pass-thru = <0 0x3f>;
    		gpio-map = <0 0 &gpio0 3 0>,	/* A0 */
    			   <1 0 &gpio0 4 0>,	/* A1 */
    			   <2 0 &gpio0 28 0>,	/* A2 */
    			   <3 0 &gpio0 29 0>,	/* A3 */
    			   <4 0 &gpio0 30 0>,	/* A4 */
    			   <5 0 &gpio0 31 0>,	/* A5 */
    			   <6 0 &gpio1 1 0>,	/* D0 */
    			   <7 0 &gpio1 2 0>,	/* D1 */
    			   <8 0 &gpio1 3 0>,	/* D2 */
    			   <9 0 &gpio1 4 0>,	/* D3 */
    			   <10 0 &gpio1 5 0>,	/* D4 */
    			   <11 0 &gpio1 6 0>,	/* D5 */
    			   <12 0 &gpio1 7 0>,	/* D6 */
    			   <13 0 &gpio1 8 0>,	/* D7 */
    			   <14 0 &gpio1 10 0>,	/* D8 */
    			   <15 0 &gpio1 11 0>,	/* D9 */
    			   <16 0 &gpio0 12 0>,	/* D10 */
    			   <17 0 &gpio0 13 0>,	/* D11 */
    			   <18 0 &gpio0 14 0>,	/* D12 */
    			   <19 0 &gpio0 15 0>,	/* D13 */
    			   <20 0 &gpio0 26 0>,	/* D14 */
    			   <21 0 &gpio0 27 0>;	/* D15 */
    	};
    
    	arduino_adc: analog-connector {
    		compatible = "arduino,uno-adc";
    		#io-channel-cells = <1>;
    		io-channel-map = <0 &adc 1>,	/* A0 = P0.3 = AIN1 */
    				 <1 &adc 2>,	/* A1 = P0.4 = AIN2 */
    				 <2 &adc 4>,	/* A2 = P0.28 = AIN4 */
    				 <3 &adc 5>,	/* A3 = P0.29 = AIN5 */
    				 <4 &adc 6>,	/* A4 = P0.30 = AIN6 */
    				 <5 &adc 7>;	/* A5 = P0.31 = AIN7 */
    	};
    
    	/* These aliases are provided for compatibility with samples */
    	aliases {
    		led0 = &evb_led1;
    		led1 = &evb_led2;
    		led2 = &evb_led3;
    		led3 = &evb_led4;
    		pwm-led0 = &pwm_evb_led1;
    		sw0 = &evb_sw1;
    		sw1 = &evb_sw2;
    		sw2 = &evb_sw3;
    		sw3 = &evb_sw4;
    		bootloader-led0 = &evb_led1;
    		watchdog0 = &wdt0;
    	};
    };
    
    &adc {
    	status = "okay";
    };
    
    &uicr {
    	gpio-as-nreset;
    };
    
    &gpiote {
    	status = "okay";
    };
    
    &gpio0 {
    	status = "okay";
    };
    
    &gpio1 {
    	status = "okay";
    };
    
    &uart0 {
    	compatible = "nordic,nrf-uarte";
    	status = "okay";
    	current-speed = <115200>;
    	pinctrl-0 = <&uart0_default>;
    	pinctrl-1 = <&uart0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    arduino_serial: &uart1 {
    	status = "okay";
    	current-speed = <115200>;
    	pinctrl-0 = <&uart1_default>;
    	pinctrl-1 = <&uart1_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    arduino_i2c: &i2c0 {
    	compatible = "nordic,nrf-twi";
    	status = "okay";
    	pinctrl-0 = <&i2c0_default>;
    	pinctrl-1 = <&i2c0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &i2c1 {
    	compatible = "nordic,nrf-twi";
    	/* Cannot be used together with spi1, so disabled by default. */
    	pinctrl-0 = <&i2c1_default>;
    	pinctrl-1 = <&i2c1_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &pwm0 {
    	status = "okay";
    	pinctrl-0 = <&pwm0_default>;
    	pinctrl-1 = <&pwm0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &spi0 {
    	compatible = "nordic,nrf-spi";
    	/* Cannot be used together with i2c0, so disabled by default. */
    	pinctrl-0 = <&spi0_default>;
    	pinctrl-1 = <&spi0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &spi1 {
    	compatible = "nordic,nrf-spi";
    	status = "okay";
    	pinctrl-0 = <&spi1_default>;
    	pinctrl-1 = <&spi1_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &spi2 {
    	compatible = "nordic,nrf-spi";
    	/* Disabled by default in nrf52840.dtsi. */
    	pinctrl-0 = <&spi2_default>;
    	pinctrl-1 = <&spi2_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &qspi {
    	/* Disabled by default in nrf52840.dtsi. */
    	pinctrl-0 = <&qspi_default>;
    	pinctrl-1 = <&qspi_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    arduino_spi: &spi3 {
    	status = "disabled";
    	/* Cannot be used together with evb_led1, evb_led2, evb_led3, evb_sw2
    	 * and pwm0 so disabled by default.
    	 */
    	cs-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;	/* D10 */
    	pinctrl-0 = <&spi3_default>;
    	pinctrl-1 = <&spi3_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &ieee802154 {
    	status = "okay";
    };
    
    &flash0 {
    
    	partitions {
    		compatible = "fixed-partitions";
    		#address-cells = <1>;
    		#size-cells = <1>;
    
    		boot_partition: partition@0 {
    			label = "mcuboot";
    			reg = <0x000000000 0x0000C000>;
    		};
    		slot0_partition: partition@c000 {
    			label = "image-0";
    			reg = <0x0000C000 0x00067000>;
    		};
    		slot1_partition: partition@73000 {
    			label = "image-1";
    			reg = <0x00073000 0x00067000>;
    		};
    		scratch_partition: partition@da000 {
    			label = "image-scratch";
    			reg = <0x000da000 0x0001e000>;
    		};
    		storage_partition: partition@f8000 {
    			label = "storage";
    			reg = <0x000f8000 0x00008000>;
    		};
    	};
    };
    
    zephyr_udc0: &usbd {
    	compatible = "nordic,nrf-usbd";
    	status = "okay";
    };
    

    pan1780_evb.overlay

    /*
     * Copyright (c) 2021-2022 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
     */
    
    / {
    	/*chosen {
    		nordic,pm-ext-flash = &mx25r64;
    	};*/
    
    	/*
    	* In some default configurations within the nRF Connect SDK,
    	* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
    	* This devicetree overlay ensures that default is overridden wherever it
    	* is set, as this application uses the RNG node for entropy exclusively.
    	*/
    
    	chosen {
    		zephyr,entropy = &rng;
    	};
    
    	/*
    	* By default, PWM module is only configured for led0 (LED1 on the board).
    	* The light bulb app, however, uses LED2 to show the state of the lighting,
    	* including its brightness level.
    	*/
    	aliases {
    		pwm-led1 = &pwm_led1;
    	};
    
    	pwmleds {
    		pwm_led1: pwm_led_1 {
    			pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
    		};
    	};
    
    };
    
    / {
        bgt60 {
            compatible = "gpio-keys";
            targetd: d_target {
                gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                label = "Target detection";
            };
            phased: d_phase {
                gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                label = "Phase detection";
            };
        };
        
        aliases {
            targetd = &targetd;
            phased = &phased;
        };
    };
    
    &pwm0 {
    	pinctrl-0 = <&pwm0_default_alt>;
    	pinctrl-1 = <&pwm0_sleep_alt>;
    	pinctrl-names = "default", "sleep";
    };
    
    &pinctrl {
    	pwm0_default_alt: pwm0_default_alt {
    		group1 {
    			psels = <NRF_PSEL(PWM_OUT1, 0, 14)>;
    			//nordic,invert;
    		};
    	};
    
    	pwm0_sleep_alt: pwm0_sleep_alt {
    		group1 {
    			psels = <NRF_PSEL(PWM_OUT1, 0, 14)>;
    			low-power-enable;
    		};
    	};
    
    };
    
    /* Disable unused peripherals to reduce power consumption */
    &adc {
    	status = "disabled";
    };
    &uart1 {
    	status = "disabled";
    };
    &i2c0 {
    	status = "disabled";
    };
    &spi1 {
    	status = "disabled";
    };
    &spi3 {
    	status = "disabled";
    };
    &usbd {
    	status = "disabled";
    };
    

    prj.conf

    #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # Enable CHIP
    CONFIG_CHIP=y
    CONFIG_CHIP_PROJECT_CONFIG="src/chip_project_config.h"
    # 32773 == 0x8005 (example lighting-app)
    CONFIG_CHIP_DEVICE_PRODUCT_ID=32773
    CONFIG_STD_CPP14=y
    
    # Enable CHIP pairing automatically on application start.
    CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y
    
    # Add support for LEDs and buttons on Nordic development kits
    CONFIG_DK_LIBRARY=y
    CONFIG_PWM=y
    
    # Bluetooth Low Energy configuration
    CONFIG_BT_DEVICE_NAME="MatterLight"
    
    # Other settings
    CONFIG_THREAD_NAME=y
    CONFIG_MPU_STACK_GUARD=y
    CONFIG_RESET_ON_FATAL_ERROR=n
    CONFIG_CHIP_LIB_SHELL=y
    
    # Reduce application size
    CONFIG_USE_SEGGER_RTT=y
    
    # Enable Factory Data feature
    CONFIG_CHIP_FACTORY_DATA=n
    CONFIG_CHIP_FACTORY_DATA_BUILD=n
    

  • Hello,

    A possible reason for the overflow is that the PAN1780 EVB does not have external flash while the nRF52840 DK does. Building with DFU symbols disabled should work. I will try to reproduce the build error by disabling the external flash and building one of the Matter samples in NCS for the nRF52840 DK.

    Best regads,

    Maria

Reply Children
Related