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, do you also get a CMake error below the "aborting due to Kconfig warnings" message in your log? The reason is that all these lines above seem to be malformed, and after a certain point the build will be aborted. You likely have some incorrect formatting in these. A space where it shouldn't be for example. Anything indicating as such if you open the Kconfig file on your end?

    You could also try building the sample in-tree instead of moving it outside to your own project space in case something wrong happened when generating the application. What is the full path to your application for example?

    Best regards,

    Simon

Reply
  • Okay, do you also get a CMake error below the "aborting due to Kconfig warnings" message in your log? The reason is that all these lines above seem to be malformed, and after a certain point the build will be aborted. You likely have some incorrect formatting in these. A space where it shouldn't be for example. Anything indicating as such if you open the Kconfig file on your end?

    You could also try building the sample in-tree instead of moving it outside to your own project space in case something wrong happened when generating the application. What is the full path to your application for example?

    Best regards,

    Simon

Children
  • no, at this point I don't get a CMake error message. I'm wondering why the lines 
    are not correct (malformed), because after the correct bulid&flash of the Blinky example,
    I only loaded the Matter LightBulb example and apart from the new prj.conf file, I didn't
    click anything else and certainly didn't configure anything manually (kconfig..).

    Unfortunately, I don't understand what you mean by in-tree building instead of outside
    the project building. The project path is as shown in the screenshot (c:/nordicprogs/light_bulb). Thank you for your patience and support.
  • Try opening an existing example and choose the Matter Light Bulb application in the location where it is, so we can confirm that there's nothing wrong with the path you have, even though it seems short and correct. I built the sample at the following path without any issues on my end. C:\ncs\v2.7.0\nrf\samples\matter\light_bulb

    Can you also check which version of J-Link you have installed on your computer. J-Link v7.94i should be sufficient.

    Best regards,

    Simon

  • Now I did the whole process again:
    • Create a new application
    • Copy a sample: Matter Light Bulb (c:\nordicprogs\light_bulb_1)
    • Created the new application: open
    • Select a Kit for Light Bulb 1 (At this point, a large number of Visual Studio versions appear, but they have not been on the PC for a long time, which is why none of the VS versions are clicked here)
    • Scan for Kits: Search for compilers on this computer (no error message, everything seems to be fine)
    • Add Build Configuration:
      • Board Target: nrf7002dk/nrf5340/cpuapp
        Enable: compatible
      • Base Configuration files: No File selected
      • Extra Kconfig fragments: No File selected
      • Base Devicetree overlays: No File selected
      • Extra Devicetree overlays: No File selected
      • Snippets: No File selected: No Input
      • Extra CMake Argumets:  No Input
      • Build Directory name: build
      • Optimization Level: Use project default
              Enable: Build after generating configuration
      • System build: Buils System default
    • Build Configuration
    and then the errors appears again.





Related