This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GNUARMEMB_TOOLCHAIN_PATH is incorrect when starting SES

I'm trying to open a nRF Connect SDK project in Segger Embedded Studio for ARM (Nordic Edition) V5.30a

I have followed the instructions on the following page:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html

Before I start SES, I execute the following commands:

export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
export GNUARMEMB_TOOLCHAIN_PATH="~/gnuarmemb"
set | grep TOOL
GNUARMEMB_TOOLCHAIN_PATH='~/gnuarmemb'
ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
ephimee@linux7:~/Downloads/nordic/arm_segger_embedded_studio_v530a_linux_x64_nordic$ ./bin/emStudio 

When I try opening the project I get an log with several errors. I'm trying to understand why some errors are there. Here's a failed log:

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)

I'm specifically look at the following arguments:

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

Or two arguments specifically:

-DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/ephimee/Downloads/nordic/arm_segger_embedded_studio_v530a_linux_x64_nordic

Why is one of these arguments different or changed despite I set it before starting SES?

Parents
  • Hi!

    Running the commands

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    export GNUARMEMB_TOOLCHAIN_PATH="~/gnuarmemb"

    sets the environment variables for building in the command line, but not when using SES.

    When you are using SES, you need to go into "Tools" -> "Options" -> "nRF Connect" and edit "GNU Arm Embedded Toolchain Directory". It should be the full path to the "gnuarmemb" directory. 

    Please note that on Windowds we now recommend opening SES through the Toolchain Manager in nRF Connect for Desktop. This will set all configurations for you when opening the program. 

    Best regards,

    Heidi

Reply
  • Hi!

    Running the commands

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    export GNUARMEMB_TOOLCHAIN_PATH="~/gnuarmemb"

    sets the environment variables for building in the command line, but not when using SES.

    When you are using SES, you need to go into "Tools" -> "Options" -> "nRF Connect" and edit "GNU Arm Embedded Toolchain Directory". It should be the full path to the "gnuarmemb" directory. 

    Please note that on Windowds we now recommend opening SES through the Toolchain Manager in nRF Connect for Desktop. This will set all configurations for you when opening the program. 

    Best regards,

    Heidi

Children
Related