This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[NCS v1.7.0]Matter light_bulb example compilation error

Dear friend,

I followed the steps below and failed to compile the v1.7.0\nrf\samples\matter\light_bulb program:
1. Enter the v1.7.0\toolchain directory and double-click "SEGGER Embedded Studio.cmd" to open SEGGER.
2. Click "File"->"Open nRF Connect SDK Project"
3. Select the light_bulb project in matter in the Project column, as shown in the figure below:


4. Click "Rebuild" and the following error appears:

Rebuilding ‘zephyr/linker_zephyr_prebuilt.cmd’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/linker_zephyr_prebuilt.cmd’
1> zephyr\CMakeFiles\linker_zephyr_prebuilt.cmd-a833d9e.bat b9ac94e79f037c6a
1> Error starting process zephyr\CMakeFiles\linker_zephyr_prebuilt.cmd-a833d9e.bat
Build failed

The same operation, compiling v1.7.0\nrf\samples\matter\light_switch is successful.
How is matter\light_bulb compiled?

Best Regards,

Zero

Parents
  • I get the same linker error as described above when executing the build in SES. Any other project works fine with the installed NCS SDK v1.7.0. By that it can not be an issue with the SDK installation.

    Are you really able to build successfully within SES or are you maybe using west command line building outside SES?

  • Hello,

    Armin said:
    Are you really able to build successfully within SES or are you maybe using west command line building outside SES?

    Yes, I build and re-built using SES Nordic Edition, following the description in the original ticket.
    Are you seeing the same errors as Zero mentioned?
    Could you try to reinstall the NCS SDK v1.7.0 using the Toolchain Manager, like I asked Zero to do?

    Best regards,
    Karl

  • Yes, I see the same error as Zero mentioned. It is actually a linker error.
    I already installed NCS SDK v1.7.0 using the Toolchain Manager.

Reply Children
  • Armin said:
    Yes, I see the same error as Zero mentioned.

    Thanks for clarifying this.

    Armin said:
    I already installed NCS SDK v1.7.0 using the Toolchain Manager.

    Could you go ahead and reinstall it nevertheless? In order to rule out any issues having occurred during the installation.
    May I ask where in your file hierarchy you have placed the SDK as well? Similar to what I mentioned in Zero's regard.

    Best regards.
    Karl

  • Now I loaded the same project in the same NCS 1.7.0 environment into nRF Connect for VSC and here it is built without any problems. It's meanwhile already running on the devkit.

    So it is definitely an SES problem, or at least something which relates to SES. I will now no longer investigate on this as we anyway will switch over to nRF Connect for VSC.

    My final recommendation now would definitely be to switch over to nRF Connect for VSC for new projects like Matter.

  • I find it strange that you both experienced this with SES, but since I am unable to reproduce it it will also be hard for me to investigate further.
    I am however happy to hear that this is no longer an issue for you, and that you are now switching to using nRF Connect for VSC.

    Armin said:
    My final recommendation now would definitely be to switch over to nRF Connect for VSC for new projects like Matter.

    It is also my definite recommendation to switch to nRF Connect for VSC for all new projects.

    Best regards,
    Karl

Related