I'm trying to set up the nRF Connect SDK Toolchain on Ubuntu 20.04.2 LTS x86_64, following this manual.
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/gs_installing.html#
To get it to work in combination with CLion I'm also using this tutorial.
https://blog.jetbrains.com/clion/2021/04/using-nrf52-with-cmake-connect-sdk/
I created a project and I'm able to build target "zephyr_final" to compile it.
But when I try to execute the target "flash" afterwards, I get this error:
~/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/211.6693.114/bin/cmake/linux/bin/cmake --build ~/git/Project/cmake-build-zdebug-nrf-connect-sdk-v151 --target flash [0/1] Flashing nrf52dk_nrf52832 usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ... west: error: argument <command>: invalid choice: 'flash' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate') FAILED: zephyr/cmake/flash/CMakeFiles/flash cd ~/git/Project/cmake-build-zdebug-nrf-connect-sdk-v151 && ~/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/211.6693.114/bin/cmake/linux/bin/cmake -E env /usr/bin/python3.8 -m west flash --skip-rebuild ninja: build stopped: subcommand failed.
Regards,
Mort