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

SDK v1.3.1 Segger won't build samples or applications

I've just moved over to the latest SDK version 1.3.1 (i uninstalled the previous version before installing the new one)

I installed it via the toolchain manager as usual.

SEGGER can no longer build Samples or Applications, 

I just get this error when opening the project using the "Open nrf connect sdk project...." 

I've managed to build the Asset tracker once but if I try to open the project using the "Clean Build Directory" option I also get this error.

Any ideas would be great.

Parents
  • Hi Chris, 

    First, You could check the project setting.

    Second, check the environment option (From Tools -> Option -> nRF Connect) is correct to your path.

    Please let me know this can help or not. Thanks.

    -Amanda H.

  • First - Yup board is correct, same error whether i build against the nrf9160DK or the thingy91 board in the nrf board folder

    Second - Checked and my values for the configuration are the same as the ones in your screenshot

  • Hi Chris, 

    Could you delete the build file and try again?

    May I take a look at your setting?

    Are you able to build with the west as the following command?

    ncs\v1.3.1\nrf\applications\asset_tracker>west build -b thingy91_nrf9160ns
    
    or
    
    ncs\v1.3.1\nrf\applications\asset_tracker>west build -b nrf9160dk_nrf9160ns

    If not, please also provide the log. Thanks.

    -Amanda H.

  • So i ran that command against the AT_Client project and got this 

    $ west build -b thingy91_nrf9160ns
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/SDK/NRF/v1.3.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/SDK/NRF/v1.3.1/nrf/samples/nrf9160/at_client
    -- Zephyr version: 2.3.0-rc1 (C:/SDK/NRF/v1.3.1/zephyr)
    -- Found Python3: C:/Python38/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Board: thingy91_nrf9160ns
    -- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.7.3", minimum required is "0.7.1")
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    CMake Error at C:/SDK/NRF/v1.3.1/zephyr/cmake/generic_toolchain.cmake:64 (include):
      include could not find load file:
    
        C:/SDK/NRF/v1.3.1/zephyr/cmake/toolchain//generic.cmake
    Call Stack (most recent call first):
      C:/SDK/NRF/v1.3.1/zephyr/cmake/app/boilerplate.cmake:504 (include)
      C:/SDK/NRF/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      C:/SDK/NRF/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Found BOARD.dts: C:/SDK/NRF/v1.3.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns.dts
    CMake Error at C:/SDK/NRF/v1.3.1/zephyr/cmake/dts.cmake:146 (message):
      command failed with return code: The system cannot find the file specified
    Call Stack (most recent call first):
      C:/SDK/NRF/v1.3.1/zephyr/cmake/app/boilerplate.cmake:505 (include)
      C:/SDK/NRF/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      C:/SDK/NRF/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-BC:\SDK\NRF\v1.3.1\nrf\samples\nrf9160\at_client\build' '-SC:\SDK\NRF\v1.3.1\nrf\samples\nrf9160\at_client' -GNinja -DBOARD=thingy91_nrf9160ns
    

    Running against Asset tracker i get something different

    $ west build - b thingy91_nrf9160ns
    ERROR: source directory - does not exist
    FATAL ERROR: refusing to proceed without --force due to above error
    

    If i run with --force i get this

    $ west build - b thingy91_nrf9160ns --force
    Traceback (most recent call last):
      File "c:\python38\lib\runpy.py", line 193, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "c:\python38\lib\runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "C:\Python38\Scripts\west.exe\__main__.py", line 7, in <module>
      File "c:\python38\lib\site-packages\west\app\main.py", line 780, in main
        app.run(argv or sys.argv[1:])
      File "c:\python38\lib\site-packages\west\app\main.py", line 106, in run
        self.run_command(argv)
      File "c:\python38\lib\site-packages\west\app\main.py", line 339, in run_command
        self.run_extension(args.command, argv)
      File "c:\python38\lib\site-packages\west\app\main.py", line 409, in run_extension
        command.run(args, unknown, self.topdir, manifest=self.manifest)
      File "c:\python38\lib\site-packages\west\commands.py", line 116, in run
        self.do_run(args, unknown)
      File "c:\sdk\nrf\v1.3.1\zephyr\scripts\west_commands\build.py", line 137, in do_run
        self._sanity_precheck()
      File "c:\sdk\nrf\v1.3.1\zephyr\scripts\west_commands\build.py", line 216, in _sanity_precheck
        'CMakeLists.txt' in os.listdir(app),
    FileNotFoundError: [WinError 3] The system cannot find the path specified: '-'
    

    You'll have to elaborate more on which settings of logs you want to see, I'm not vastly experienced with this form of development Smiley

    Thanks for your time.

  • Hi, 

    It seems it cannot find the gnuarmemb. Please add ncs\v1.3.1\toolchain\opt to the environment variable as GNUARMEMB_TOOLCHAIN_PATH. 

    -Amanda H.

Reply Children
Related