Hello!
I purchased a SparkFun Thing Plus - nRF9160 a week ago, successfully compiled and ran the accelerometer, and created a “hello word” from scratch.

However, when I try to compile “simple_at”, “at_client”, or any other project, multiple rows in prj.conf fail.

My biggest issue so far is that I can’t find a “uart.h” library to compile any of the projects. I searched the C:\ncs folder for “uart.h” files; there are about 40 uart.h libraries, I tried every “uart.h” library, but they all failed to compile.

I would like to make a HTTP Post project

Any help would be much appreciated!

    Digisol However, when I try to compile “simple_at”, “at_client”, or any other project, multiple rows in prj.conf fail.

    I’ll need more details. Can you share a log?

    Digisol I would like to make a HTTP Post project

    I recommend checking this sample: https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers/tree/v2.4.x/samples/https

    Make sure you’re using the latest version of NFED (currently 2.4.x as of this writing)

    Thank you for your prompt response.
    I got the files from the Github link you supplied.
    I unpacked and compiled the “at_client” project.

    Compilation result is inserted as a code, I don’t know if I can attach a file, sorry about that.

    .../c/ncs/ejercicios/at_client
    $ west build -b circuitdojo_feather_nrf9160_ns -p
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/Ejercicios/at_client
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: circuitdojo_feather_nrf9160_ns
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
    -- Generated zephyr.dts: C:/ncs/Ejercicios/at_client/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/Ejercicios/at_client/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/Ejercicios/at_client/build/zephyr/dts.cmake
    
    warning: Deprecated symbol NRF_MODEM_LIB_TRACE_BACKEND_UART_ASYNC is enabled.
    
    Parsing C:/ncs/v2.5.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
    Merged configuration 'C:/ncs/Ejercicios/at_client/prj.conf'
    Configuration saved to 'C:/ncs/Ejercicios/at_client/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/Ejercicios/at_client/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/Ejercicios/at_client/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:31 (find_package)
    
    
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: circuitdojo_feather_nrf9160
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
    -- Found devicetree overlay: C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
    Merged configuration 'C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf'
    Merged configuration 'C:/ncs/v2.5.0/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.5.0/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/Ejercicios/at_client/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    MCUBoot bootloader key file: C:/ncs/v2.5.0/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/Ejercicios/at_client/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.5.0/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
    
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
    
    
    
    
    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message):
      __ASSERT() statements are globally ENABLED
    
    
    CMake Warning at C:/ncs/v2.5.0/nrf/cmake/partition_manager.cmake:79 (message):
    
    
              ---------------------------------------------------------------------
              --- WARNING: Using a bootloader without pm_static.yml.            ---
              --- There are cases where a deployed product can consist of       ---
              --- multiple images, and only a subset of these images can be     ---
              --- upgraded through a firmware update mechanism. In such cases,  ---
              --- the upgradable images must have partitions that are static    ---
              --- and are matching the partition map used by the bootloader     ---
              --- programmed onto the device.                                   ---
              ---------------------------------------------------------------------
    
    
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/zephyr/cmake/modules/kernel.cmake:247 (include)
      C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    CMake Error at C:/ncs/v2.5.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):
      Cannot find source file:
    
        C:/ncs/v2.5.0/nrf/samples/nrf9160/at_client/src/main.c
    
      Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
      .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/zephyr/cmake/modules/kernel.cmake:210 (zephyr_library_named)
      C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    CMake Error at C:/ncs/v2.5.0/zephyr/cmake/modules/extensions.cmake:424 (add_library):
      No SOURCES given to target: app
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/zephyr/cmake/modules/kernel.cmake:210 (zephyr_library_named)
      C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    ?[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-BC:\ncs\ejercicios\at_client\build' -GNinja -DBOARD=circuitdojo_feather_nrf9160_ns '-SC:\ncs\ejercicios\at_client'
    ?[0m

    I have Windows 10 Pro and the following software:
    *- “nRF Connect 4.3.0”
    *- Toolchain 1.3.0
    *- West version: v1.1.0.

    Sorry, I don’t know what NFED stands for.

    Looks like your using Nordic’s Tooling? You likely need to look at their documentation/use their VSCode extension. The way that applications and the structure of Zephyr works it’s very particular on how things are placed. Thus why you’re getting errors about files being missing.

    Otherwise you’re best, supported, path forward is following the docs here: https://docs.circuitdojo.com/nrf9160-sdk-setup-windows.html

      I currently tried to build “ncs/v2.5.0/nrf/samples/cellular/at_client ((v2.5.0))” using the toolchain installation of the nRF Connect for Desktop 4.3.0, Toolchain Manager 1.3.0, running on Windows 11.

      “Works on my machine”.

       /c/ncs/v2.5.0/nrf/samples/cellular/at_client ((v2.5.0))
      $ west build -b circuitdojo_feather_nrf9160_ns
      -- west build: generating a build system
      Loading Zephyr default modules (Zephyr base).
      -- Application: C:/ncs/v2.5.0/nrf/samples/cellular/at_client
      -- CMake version: 3.20.5
      -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
      CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
        'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
        instead.
      Call Stack (most recent call first):
        C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
        C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
        C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
        C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
        CMakeLists.txt:9 (find_package)
      
      
      -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
      -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
      -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
      -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
      -- Board: circuitdojo_feather_nrf9160_ns
      -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
      -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
      -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
      
      -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
      -- Generated zephyr.dts: C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/zephyr/zephyr.dts
      -- Generated devicetree_generated.h: C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/zephyr/include/generated/devicetree_generated.h
      -- Including generated dts.cmake file: C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/zephyr/dts.cmake
      Parsing C:/ncs/v2.5.0/zephyr/Kconfig
      Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
      Merged configuration 'C:/ncs/v2.5.0/nrf/samples/cellular/at_client/prj.conf'
      Configuration saved to 'C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/zephyr/.config'
      Kconfig header saved to 'C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/zephyr/include/generated/autoconf.h'
      -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
      -- The C compiler identification is GNU 12.2.0
      -- The CXX compiler identification is GNU 12.2.0
      -- The ASM compiler identification is GNU
      -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
      CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message):
        __ASSERT() statements are globally ENABLED
      
      
      Dropping partition 'nrf_modem_lib_trace' since its size is 0.
      Dropping partition 'nonsecure_storage' since it is empty.
      -- Configuring done
      -- Generating done
      -- Build files have been written to: C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build
      -- west build: building application
      [2/245] Generating include/generated/version.h
      -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1
      [3/245] Generating ../../tfm/CMakeCache.txt
      CMake Warning at cmake/version.cmake:22 (message):
        Actual TF-M version is not available from Git repository.  Settled to
        v1.8.0
      Call Stack (most recent call first):
        CMakeLists.txt:22 (include)
      
      
      -- Found Git: C:/ncs/toolchains/c57af46cb7/mingw64/bin/git.exe (found version "2.37.3.windows.1")
      -- The C compiler identification is GNU 12.2.0
      -- The CXX compiler identification is GNU 12.2.0
      -- The ASM compiler identification is GNU
      -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
      -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
      CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
        'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
        instead.
      Call Stack (most recent call first):
        C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
        C:/ncs/v2.5.0/zephyr/cmake/modules/user_cache.cmake:30 (include)
        C:/ncs/v2.5.0/zephyr/cmake/modules/extensions.cmake:5 (include)
        C:/ncs/v2.5.0/nrf/subsys/nrf_security/tfm/CMakeLists.txt:36 (include)
      
      
      -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
      -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
      -- Configuring done
      -- Generating done
      -- Build files have been written to: C:/ncs/v2.5.0/nrf/samples/cellular/at_client/build/tfm
      [8/245] Performing build step for 'tfm'
      [152/156] Linking C executable bin\tfm_s.axf
      Memory region         Used Size  Region Size  %age Used
                 FLASH:       32056 B        32 KB     97.83%
                   RAM:       14736 B        32 KB     44.97%
      [156/156] Generating ../bin/tfm_s.bin
      [15/245] Performing install step for 'tfm'
      -- Install configuration: "MinSizeRel"
      [243/245] Linking C executable zephyr\zephyr.elf
      Memory region         Used Size  Region Size  %age Used
                 FLASH:       61112 B       992 KB      6.02%
                   RAM:       32676 B     211608 B     15.44%
              IDT_LIST:          0 GB         2 KB      0.00%
      [245/245] Generating zephyr/merged.hex
      6 days later

      jaredwolff Merry Christmas!
      Thank you so much for your assistance! It worked perfectly.

      How can I close a compiled and programmed project in order to open another example project or start from scratch?

      I chose “Close folder” the last time and had to restart with “Zephyr Tools: Init Repo” again.

      Any suggestions are much welcomed.

      Simply open the project root folder (the one that contains NFED or whatever application you have) using the open folder command in VSCode. Projects retain their configuration/setup even id you “close out”.

      Hope that helps!

      Terms and Conditions | Privacy Policy