I'm trying to open a nRF Connect SDK project in Segger Embedded Studio for ARM (Nordic Edition) V5.30a
When I try opening the project I get an error box with the following message:
create_nordic_project.py failed (1)
In the output terminal I see the following:
Creating solution myproject.emProject cmake -GNinja -DBOARD=myboard -DBOARD_DIR=/home/ephimee/git/mycompany/myproject/boards/arm/myboard -B/home/ephimee/git/mycompany/myproject/build_myboard_mycompany -S/home/ephimee/git/mycompany/myproject -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/ephimee/Downloads/nordic/arm_segger_embedded_studio_v530a_linux_x64_nordic -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/ephimee/Downloads/nordic/arm_segger_embedded_studio_v530a_linux_x64_nordic/html/configure_nordic_project_menuconfig.py -- Configuring incomplete, errors occurred! See also "/home/ephimee/git/mycompany/myproject/build_myboard_mycompany/CMakeFiles/CMakeOutput.log". Including boilerplate (Zephyr base (cached)): /home/ephimee/zephyr-sdk-0.11.4/cmake/app/boilerplate.cmake CMake Error at /home/ephimee/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include): include could not find load file: /home/ephimee/zephyr-sdk-0.11.4/cmake/app/boilerplate.cmake Call Stack (most recent call first): /home/ephimee/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate) CMakeLists.txt:9 (find_package) CMake Error at CMakeLists.txt:12 (target_include_directories): Cannot specify include directories for target "app" which is not built by this project. CMake Error at CMakeLists.txt:15 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:16 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:18 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:19 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:20 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:21 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:22 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:23 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:24 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:27 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:28 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:29 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:30 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:31 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:32 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:33 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:36 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:37 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:38 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:39 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:40 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:41 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:42 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:46 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:47 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:48 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:49 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:52 (target_sources): Cannot specify sources for target "app" which is not built by this project. CMake Error at CMakeLists.txt:53 (target_sources): Cannot specify sources for target "app" which is not built by this project. error: cmake failed create_nordic_project.py failed (1)
According to the log, it seems the following file does not exist:
/home/ephimee/zephyr-sdk-0.11.4/cmake/app/boilerplate.cmake
But according to the website, the boilerplate should be generated elsewhere:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html
In the directory $HOME/ncs, execute:
west zephyr-export
This will result in the file:
$HOME/ncs/zephyr/cmake/app/boilerplate.cmake
Why is Segger looking in the wrong directory?