west: unknown command "build"


After using the backup v2.9.0 project to overwrite the original project, I encountered the following issues during compilation:

xwb@DESKTOP-BQI33L3 MINGW64 /c/ncs/RTN/RTN_1/tools/buildprog
$ python buildprog.py -c app -b debug -d both
No programmer/debugger connected to PC
No snrs connected
+------------+----------+---------+--------------+---------------------+---------------------+
|    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
+------------+----------+---------+--------------+---------------------+---------------------+
| 1050166285 |  False   | headset | Not selected |       Selected      |     Not selected    |
| 1050145340 |  False   | gateway | Not selected |       Selected      |     Not selected    |
| 1050159954 |  False   | headset | Not selected |       Selected      |     Not selected    |
+------------+----------+---------+--------------+---------------------+---------------------+
Invoking build step
Run: west build C:\ncs\RTN\RTN_1 -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -d C:\ncs\RTN\RTN_1\build\dev_headset\build_debug -DCONFIG_AUDIO_DEV=1 -DCONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=n
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: unknown command "build"; workspace C:\ncs\v2.9.0 does not define this extension command -- try "west help"
Traceback (most recent call last):
  File "C:\ncs\RTN\RTN_1\tools\buildprog\buildprog.py", line 418, in <module>
    __main()
  File "C:\ncs\RTN\RTN_1\tools\buildprog\buildprog.py", line 401, in __main
    __build_module(build_cfg, options)
  File "C:\ncs\RTN\RTN_1\tools\buildprog\buildprog.py", line 176, in __build_module
    raise Exception("cmake error: " + str(ret_val))
Exception: cmake error: 1


How to solve it?
Using Windows not Linux.
Thank you for your help/

Related