Build my first example code, with vs studio code, get " Unmet or cyclic dependencies in modules:C:/v1.7.1/modules/lib/matter depends on: ['openthread']" error

Hello, guys.

I'm first use nRF Connect with vs studio code to build test code.

Step by step:

nRF Connect for Desktop v3.8.0 --->Toolchain Manager ---> nRF Connect SDK v1.7.1, Install build environment.

I got the following error , when to build the code. How can I solve this problem?

THX everyone。

  • Hey Dark Knight!

    Could you tell me more about this sample code you are using? Does it work on any other NCS versions, and can you build any of the other code samples available on NCS?

    Best regards,

    Elfving

  • Thx Elfving. I only use this sample code. zephyr/samples/hello_world

    Other NCS versions,i don't test.

    Today, i updated the sdk to build . 

    Then, only one error。C:\v1.7.1\modules\hal\nordic\nrfx\mdk\nrf52.h:143:10: fatal error: core_cm4.h: No such file or directory

    So I think my SDK may be incomplete. I add an agent according to this  link, but it can't succeed under windows.

    I also tried to use the system agent under windows to update the SDK. After that, the compilation problem remained the same

  • nRF Connect for Desktop v3.8.0 --->Toolchain Manager ---> nRF Connect SDK v1.7.1, Install build environment.

    And I assume you also did an automatic installation?

    Could you head into SES, go to Tools --> Package Manager, and from there see if you have "CMSIS-CORE Support Package" and "Nordic Semiconductor nRF CPU Support Package"
    installed?

    And could you try building it in SES and the command line to see if it works there?

    You can build the project using command line with west:

    west build -b nrf52dk_nrf52832

    Best regards,
    Elfving
  • Yes, automatic installation.

    Sorry, i  like use vs studio code ,so i don't try SES.

    If i useing command line with west,i got a previous mistake.

    Is there any other way for me to check whether I own these two packages?

     "CMSIS-CORE Support Package" and "Nordic Semiconductor nRF CPU Support Package"

  • Hey again Dark Knight!

    Could you open the directory ncs/v1.7.1/zephyr/samples/hello_world/ in a terminal, and try to build the sample from there? 

    v1.7.1\zephyr\samples\hello_world> west build -b nrf52dk_nrf52832 

    Best regards,

    Elfving

1 2 3