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

TCP project creation problems

Hey everyone,

I firstly want to preface this with my lack of credentials. I'm very new to embedded systems development and am figuring things out slowly so please bear with me!

My goal is to initiate a TCP connection to a website using a sample sketch that I can make further changes to down the line. I am currently doing using this sketch which I found on another thread. I have set it up the way I learned to in this basic tutorial with a src file containing main.c, Cmake, and prj.conf. I then attempted to open it using segger but got the "create_nordic_project.py failed (1)." error. Any help would be greatly appreciated, and let me know if I left out any important information needed to help troubleshoot!

Thanks!

Parents
  • Hello,

    I believe the sample you are trying to build is a bit outdated. You can try changing the line

    CONFIG_BSD_LIBRARY=y

    to

    CONFIG_NRF_MODEM_LIB=y in prj.conf,

    since that config is deprecated.

  • Hmm this didn't seem to work. Do you know of any more recent samples I could use?

  • Can you post the entire build log here so I can see where it goes wrong?

  • Sorry for being late I've got a few things going on at the moment

  • If I delete the net raw mode definition in conf (I have no idea if that was the right thing to do but seemed reasonable since it is complaining about it in the error) I get this error

    Creating solution TCP.emProject
    C:/Users/Miles/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=C:\Users\Miles\ncs\v1.4.99-dev1\zephyr\boards\arm\nrf9160dk_nrf9160 -BC:\Users\Miles\TCP\build_nrf9160dk_nrf9160ns -SC:\Users\Miles\TCP -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\Miles\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: C:/Users/Miles/TCP
    -- Zephyr version: 2.4.99 (C:/Users/Miles/ncs/v1.4.99-dev1/zephyr)
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160ns
    -- Cache files will be written to: C:/Users/Miles/ncs/v1.4.99-dev1/zephyr/.cache
    -- Found dtc: C:/Users/Miles/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/Users/Miles/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: C:/Users/Miles/ncs/v1.4.99-dev1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
    -- Generated zephyr.dts: C:/Users/Miles/TCP/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Users/Miles/TCP/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
    Parsing C:/Users/Miles/ncs/v1.4.99-dev1/zephyr/Kconfig
    Loaded configuration 'C:/Users/Miles/ncs/v1.4.99-dev1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
    Merged configuration 'C:/Users/Miles/TCP/prj.conf'
    -- Configuring incomplete, errors occurred!
    -- Using NCS Toolchain 1.5.0 for building. (C:/Users/Miles/ncs/v1.5.0/toolchain/cmake)

    warning: LOG_DEFAULT_LEVEL (defined at C:/Users/Miles/ncs/v1.4.99-dev1/nrf\samples/Kconfig:33,
    subsys/logging/Kconfig:32) was assigned the value '4' but got the value ''. Check these unsatisfied
    dependencies: (LOG || LOG) (=n). See
    docs.zephyrproject.org/.../CONFIG_LOG_DEFAULT_LEVEL.html and/or look up
    LOG_DEFAULT_LEVEL 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.


    warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
    docs.zephyrproject.org/.../CONFIG_TEST_RANDOM_GENERATOR.html and/or look
    up TEST_RANDOM_GENERATOR 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.


    C:/Users/Miles/TCP/prj.conf:1: warning: attempt to assign the value 'y' to the undefined symbol NRF_MODEM_LIB

    warning: AT_CMD (defined at C:/Users/Miles/ncs/v1.4.99-dev1/nrf\lib\at_cmd/Kconfig:9) has direct dependencies BSD_LIBRARY with value n, but is currently being y-selected by the following symbols:
    - LTE_LINK_CONTROL (defined at C:/Users/Miles/ncs/v1.4.99-dev1/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/Miles/ncs/v1.4.99-dev1/zephyr/cmake/kconfig.cmake:251 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Users/Miles/ncs/v1.4.99-dev1/zephyr/cmake/app/boilerplate.cmake:590 (include)
    CMakeLists.txt:9 (include)



    error: cmake failed
    create_nordic_project.py failed (1)

  • You can try this modified version of it.

    tcp.zip

    You might need to change the TCP hostname to something else.

Reply Children
No Data
Related