Support pca10059 Dongle in matter protocol

I studied the firmware assembly using Zephyr and West. Now I'm trying to include devices working with matter in other. You have examples in the NRF Connect SDK - for example, light bulbs. This example is perfectly assembled on the DK board. The only problem is that I don't have such a fee. At the moment I have a pca10059 Dongle and I really want to try to run an example of a light bulb on this board. How to properly port software under Dongle?

What did I do?

NCS v1.9.1/

I took an example from a light bulb and specified in the settings a board from Nordic - nrf52840dongle_nrf52840

Error via build:

CMake Warning at C:/ncs/v1.9.1/zephyr/CMakeLists.txt:764 (message):
  No SOURCES given to Zephyr library: subsys__net__pkt_filter

  Excluding target from build.


CMake Warning at C:/ncs/v1.9.1/zephyr/CMakeLists.txt:1687 (message):
  __ASSERT() statements are globally ENABLED


Traceback (most recent call last):
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 1938, in <module>
    main()
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 1017, in main
    solution.update(solve_region(pm_config, region, region_config,
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 960, in solve_region
    get_region_config(partitions, region_config, static_partitions, system_reqs=pm_config)
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 750, in get_region_config
    solve_complex_region(pm_config, start, size, placement_strategy, region_name, device, static_conf, dp, system_reqs)
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 858, in solve_complex_region
    set_addresses_and_align(pm_config, sub_partitions, solution, free_size, dp, start=start, system_reqs=system_reqs)
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 417, in set_addresses_and_align
    reqs[dp]['size'] = dynamic_partitions_size(reqs, size, dp)
  File "C:/ncs/v1.9.1/nrf/scripts/partition_manager.py", line 388, in dynamic_partitions_size
    size = total_size - sum([req['size'] for name, req in reqs.items() if 'size' in req.keys() and name != dp])
TypeError: unsupported operand type(s) for +: 'int' and 'str'
CMake Error at C:/ncs/v1.9.1/nrf/cmake/partition_manager.cmake:274 (message):
  Partition Manager failed, aborting.  Command:
  C:/ncs/v1.9.1/toolchain/opt/bin/python.exe;C:/ncs/v1.9.1/nrf/scripts/partition_manager.py;--input-files;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/mcuboot/zephyr/include/generated/pm.yml;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/mcuboot/modules/nrf/subsys/partition_manager/pm.yml.nrf5_mbr;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/mcuboot/modules/nrf/subsys/partition_manager/pm.yml.pcd;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/zephyr/include/generated/pm.yml;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/modules/nrf/subsys/partition_manager/pm.yml.nrf5_mbr;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/modules/nrf/subsys/partition_manager/pm.yml.settings;--regions;sram_primary;flash_primary;--output-partitions;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/partitions.yml;--output-regions;C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/regions.yml;--sram_primary-size;0x40000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;NRF_FLASH_DRV_NAME
Call Stack (most recent call first):
  C:/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake:678 (include)
  C:/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:35 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: 'c:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\v1.9.1\toolchain\opt\bin\python.exe' '-Bc:\Users\public.DESKTOP-DFE7JG1\Desktop\kek\light_bulb\build' '-Sc:\Users\public.DESKTOP-DFE7JG1\Desktop\kek\light_bulb' -GNinja -DBOARD=nrf52840dongle_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=c:/Users/public.DESKTOP-DFE7JG1/Desktop/kek/light_bulb/prj_multi_image_matter_dfu.conf

Tell us how to port correctly to run this example on a Dongle. Maybe we can get a small example of matter for a Dongle?

Related