Problems when integrating Matter protocol

Hi,

I'm trying to integrate Matter protocol but encounter some problems. 
We're using nrf5340 devkit, and Zephyr.

1. There seems to be two repositories, what is the difference?:

https://github.com/project-chip/connectedhomeip

and

https://github.com/nrfconnect/sdk-connectedhomeip

2. When I tried integrating the first one (https://github.com/project-chip/connectedhomeip) the build system of my project complains about CONFIG_CHIP=y.
Then I saw the following guide: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/matter/BUILDING.html
But the compilation fails when running "ninja -C out/host", I cloned the master branch from https://github.com/project-chip/connectedhomeip

3. When I instead used https://github.com/nrfconnect/sdk-connectedhomeip and cloned latest release, our build system doesn't complain about CONFIG_CHIP=y, but get some other errors.

Parents
  • Hi, 

    The sdk-connectedhomeip is simply a fork of the connectedhomeip which contains a snapshot of the main repository. That way, a customer may only install the nRF Connect SDK and have Matter code bundled in. Alternatively, the customer can use the main connectedhomeip repo and have the newest updates to the Matter code.

    I would recommend starting with our samples in NCS (nrf/samples/matter) or upstream (examples/*/nrfconnect) and reading README files that describe the necessary setup to build and run these applications. The READMEs also refer to documents that describe the architecture and integration with nRF Connect SDK.

    Regards,
    Amanda

  • Hi, ok thanks for clarifying that.

    I've tried to clone both sdk-connectedhomeip and connectedhomeip and followed these steps from https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/matter/BUILDING.html

    1. clone the project.

    2. Installing dependencies with:

    sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev \
         libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev \
         python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev

    3. Prepare for building, this step works fine, bootstrap activates

    source scripts/activate.sh

    4. Then run this command:

    gn gen out/host

     

    5. This step fails when trying to build the Matter project, get a lot of compile errors:

    ninja -C out/host

    When I use the sdk-connectedhomeip repository I build my own project and added CONFIG_CHIP=y
    and I see that the build system integrates Matter by starting to build Matter code, but eventually it fails with compilation errors.

    But when I use connectedhomeip and try to build my own project with CONFIG_CHIP=y in my .conf file the build system outputs an error about CONFIG_CHIP=y

    We're not using nRF Connect SDK, we're using Zephyr and have integrated sdk-nrf and sdk-nrfxlib amongs other libraries and modules.

    
    
  • Hi, 

    Pelle said:
    We're not using nRF Connect SDK, we're using Zephyr and have integrated sdk-nrf and sdk-nrfxlib amongs other libraries and modules.

    Please try to use  nRF Connect SDK. 

    -Amanda

  • Hmm, impossible, this is not a hobby project..

    So, if I rephrase the question.

    1. How can I get the Matter project to build if I just download it from either of the repository?

    Can you get it to build just by cloning and following the steps in the guide?

Reply Children
Related