nRF Studio (VC Code) don´t work with Matter Examples

I'm using nRF Studio Visual Studio Code. (SDK and Toolchain v.2.7.0) with the nRF7002 Development Kit.
The Blinky example have worked fine and also the other things as shown in the Video tutorials.

However, I am unable to generate a Matter example (LightBulb) on this basis, both under Windows and MacOS.
The same errors always occur: Kconfig warnings and Cmake errors. What's going wrong here? I ask for help.

Parents
  • Okay, this latest screenshot is of some use here actually. There are a few error messages making sense here, and that might provide insight in what is happening.

    1. "section 'rodata' will not fit into region 'FLASH" and "region 'FLASH' overflowed by 2630 bytes" points to a flash overflow in your application. You can try increasing the main stack size for example in your .conf file to remedy this.
    2. What's more important is the line after, saying there is an undefined reference to '__device_dts_ord_147'. This points to an undefined reference somewhere in your configs, but the dts_ord is found in the zephyr.dts file of your build folder, where the number 147 will reference something in particular. Please open the zephyr.dts file and find out what this reference is exactly. That should get us one step closer to the root cause of this.

    Best regards,

    Simon

  • Sorry, but I can't understand that and it's getting too detailed for me now. 
    Why should I adjust any config settings?
    I stated exactly what steps I took in the last post. Was there something wrong with that?
    I took all the config defaults and they did not come from me but from Nordic. Accordingly,
    the config settings must be incorrect.

    What is striking to me is that the nRF SDK works perfectly with other examples (blinky, etc.).
    But if one of the Matter examples is used, it just doesn't work.

    As I mentioned before, this phenomenon also occurs after uninstalling and reinstalling the SDK
    and also on MacOS. I therefore suspect a fundamental problem.

    I just need a working Matter example from Nordic. Please help.
Reply
  • Sorry, but I can't understand that and it's getting too detailed for me now. 
    Why should I adjust any config settings?
    I stated exactly what steps I took in the last post. Was there something wrong with that?
    I took all the config defaults and they did not come from me but from Nordic. Accordingly,
    the config settings must be incorrect.

    What is striking to me is that the nRF SDK works perfectly with other examples (blinky, etc.).
    But if one of the Matter examples is used, it just doesn't work.

    As I mentioned before, this phenomenon also occurs after uninstalling and reinstalling the SDK
    and also on MacOS. I therefore suspect a fundamental problem.

    I just need a working Matter example from Nordic. Please help.
Children
  • Then, please upload the devicetree_generated.h file here and I will take a look at it. It should be located at c:\nordicprogs\light_bulb_1\build\zephyr\include\generated on your end. 

    The other things you could do is to try building the application in tree as described step by step below:

    1. Go to the nRF Connect extension in in VS Code.
    2. In the Applications tab, press the + to open an existing application.
    3. Navigate to the Matter sample of your choosing. light_bulb for example below and open that folder:

    4. Add a build configuration, choose the board target, and build the configuration.

    This builds and flashes on my end. If it doesn't for you, please uninstall and reinstall the SDK entirely from your device to make sure nothing was wrong with your SDK installation.

    Best regards,

    Simon

Related