cmake error

I am trying TCP program in nrf9160, in my prj.conf If I set CONFIG_LTE_LINK_CONTROL=y  then it is giving CMake error,

if I make CONFIG_LTE_LINK_CONTROL=n then it will not give any error

Parents
  • Hi,

    Are you using one of the samples in the nRF Connect SDK, and if so, which one? How are you building the project? Are you using SEGGER Embedded Studio, VS Code or command line?

    Best regards,

    Marte

  • Hi marte,

    thank you for ur fast reply,

    I have written my own code to test TCP communication, and I am using SEGGER Embedded studio,

    In prj.conf in order to use LTE I have enabled CONFIG_LTE_LINK_CONTROL after doing this, I am getting error saying

    warning: AT_CMD_PARSER (defined at C:/Users/Anitha.S/ncs/v1.6.1/nrf\lib\at_cmd_parser/Kconfig:7) has direct dependencies NEWLIB_LIBC || EXTERNAL_LIBC with value n, but is currently being y-selected by the following symbols:
    - LTE_LINK_CONTROL (defined at C:/Users/Anitha.S/ncs/v1.6.1/nrf\lib\lte_link_control/Kconfig:7), with value y, direct dependencies y (value: y)

    error: Aborting due to Kconfig warnings

    CMake Error at C:/Users/Anitha.S/ncs/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Users/Anitha.S/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include)
    C:/Users/Anitha.S/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/Users/Anitha.S/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:5 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'C:\Users\Anitha.S\ncs\v1.6.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\Users\Anitha.S\ncs\v1.6.1\toolchain\opt\bin\python.exe' '-BD:\my_projects\modem\tcp1\build' '-SD:\my_projects\modem\tcp1' -GNinja

    Best regards

    Anitha S

  • Hi Anitha,

    Do you get the same error if you build on the command line? For a guide on how to do this you can look at Building on the command line.

    There are some issues with path length, causing errors when the path of the build directory is too long. Could you try installing nRF Connect SDK directly under the C:\ directory instead of under your user directory and see if that solves the issue?

    Could you share all configurations you are setting in prj.conf? You can do so by selecting Insert -> Code, and paste the content of your prj.conf file there, or directly upload the file with Insert -> Image/video/file.

    Best regards,

    Marte

Reply
  • Hi Anitha,

    Do you get the same error if you build on the command line? For a guide on how to do this you can look at Building on the command line.

    There are some issues with path length, causing errors when the path of the build directory is too long. Could you try installing nRF Connect SDK directly under the C:\ directory instead of under your user directory and see if that solves the issue?

    Could you share all configurations you are setting in prj.conf? You can do so by selecting Insert -> Code, and paste the content of your prj.conf file there, or directly upload the file with Insert -> Image/video/file.

    Best regards,

    Marte

Children
No Data
Related