Thingy53 Wifi Station build configuration Issue

Hello,

I am building the existing WIFI station app for the Thingy53 with the nRF 7002EB board - sample code: nrf/samples/wifi/sta

In the CMakeLists.txt file, the line CONFIG_WIFI_READY_LIB=y is throwing me the error: attempt to assign the value 'y' to the undefined symbol WIFI_READY_LIB

 

I have tried to build the application with toolchain v2.6.0 and v2.7.0, with the board target being thingy53_nrf5340_cpuapp and thingy53_nrf5340_cpuapp_ns, adding the additional CMake argument of -DSHIELD=nrf7002eb to to configuration.

All of these options have resulted in the Fatal error.

How do I get the config_wifi_ready_lib to integrate in my workspace?

Thank you,

Jon

Parents
  • Hi,

     

    With sysbuild enabled, one has to add the image name, ie. -DstaSHIELD=nrf7002eb.

    It is then easier to set this in your CMakeLists.txt:

    #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    cmake_minimum_required(VERSION 3.20.0)
    set(SHIELD nrf7002eb)
    ...rest of file

    Could you try this and see if that works?

     

    Kind regards,

    Håkon

  • Hey there Hakon,

    I was not building with sysbuild enabled, so I tried the following variations, all of which had varying errors:

    • With Sysbuild enabled and the set(SHIELD nrf7002eb) included the following error happened - attempt to assign the value 'y' to the undefined symbol WIFI_NRF700X in the sysbuild.conf
    • Without sysbuild enabled, and the set(SHIELD nrf7002eb) included, we run into the same error as listed above where the wifi ready lib is not being found.

    Thank you,

    Jon

  • Hi Jon,

     

    This is the build cmd that vscode emits when I set the SHIELD in CMakeLists:

    west build --build-dir /opt/ncs/nrf/samples/wifi/sta/build /opt/ncs/nrf/samples/wifi/sta --pristine --board thingy53/nrf5340/cpuapp --sysbuild

    And this is without setting it in CMakeLists.txt, and instead add it as a parameter:

    west build --build-dir /opt/ncs/nrf/samples/wifi/sta/build_1 /opt/ncs/nrf/samples/wifi/sta --pristine --board thingy53/nrf5340/cpuapp --sysbuild -- -Dsta_SHIELD=nrf7002eb
     


    Where did you place the set(SHIELD line in your CMakeLists.txt file? It is crucial that it is placed before this line:

    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

     

    Kind regards,

    Håkon

  • Hi Hakon,

    The set(Shield) line was place directly after the cmake_minimum and before the find package, sadly. The error is still occurring

    What I noticed was different, was the build target. My SDK is targeting the following - would this create a discrepancy?

    Thanks Hakon,

    Jon

Reply Children
  • Hi,

     

    Can you share your full cmake configuration + build log? Are you building for NCS v2.7.0 or v2.6.2?

    The WIFI_READY_LIB was not present in v2.6.1 (and older), so that might explain why you are still seeing this issue.

     

    Kind regards,

    Håkon

  • Hey Hakon, absolutely.

    Attached is the project.conf and the CMake Lists.txt file

    #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    cmake_minimum_required(VERSION 3.20.0)
    set(SHIELD nrf7002eb)
    
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(sta)
    
    # Include the Wi-Fi Ready library
    list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/modules/lib/wifi_ready)
    
    
    target_include_directories(app PUBLIC ${ZEPHYR_BASE}/subsys/net/ip)
    
    target_sources(app PRIVATE
    	src/main.c
    )
    
    set (SHEILD nrf7002eb)
    
    0284.prj.conf

    As for the log of the build, below is the output of my console

     *  Executing task: nRF Connect: Generate config thingy53_nrf5340_cpuapp for /Users/jon/Documents/smartweight_project/workspace/sta 
    
    Building sta
    west build --build-dir /Users/jon/Documents/smartweight_project/workspace/sta/build_9 /Users/jon/Documents/smartweight_project/workspace/sta --pristine --board thingy53_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/jon/Documents/smartweight_project/workspace/sta
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/jon/Documents/smartweight_project/workspace/sta
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/f8037e9b83/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/jon/Library/Caches/zephyr
    -- Zephyr version: 3.5.99 (/Users/jon/Documents/smartweight_project/workspace/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy53_nrf5340_cpuapp
    -- Shield(s): nrf7002eb
    -- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/f8037e9b83/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /Users/jon/Documents/smartweight_project/workspace/zephyr/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpuapp.dts
    -- Found devicetree overlay: /Users/jon/Documents/smartweight_project/workspace/nrf/boards/shields/nrf7002eb/nrf7002eb.overlay
    -- Found devicetree overlay: /Users/jon/Documents/smartweight_project/workspace/nrf/boards/shields/nrf7002eb/boards/thingy53_nrf5340_cpuapp.overlay
    -- Generated zephyr.dts: /Users/jon/Documents/smartweight_project/workspace/sta/build_9/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/jon/Documents/smartweight_project/workspace/sta/build_9/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/jon/Documents/smartweight_project/workspace/sta/build_9/zephyr/dts.cmake
    
    warning: Experimental symbol WIFI_CREDENTIALS is enabled.
    
    
    /Users/jon/Documents/smartweight_project/workspace/sta/prj.conf:11: warning: attempt to assign the value 'y' to the undefined symbol WIFI_READY_LIB
    
    error: Aborting due to Kconfig warnings
    
    Parsing /Users/jon/Documents/smartweight_project/workspace/sta/Kconfig
    Loaded configuration '/Users/jon/Documents/smartweight_project/workspace/zephyr/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpuapp_defconfig'
    Merged configuration '/Users/jon/Documents/smartweight_project/workspace/sta/prj.conf'
    CMake Error at /Users/jon/Documents/smartweight_project/workspace/zephyr/cmake/modules/kconfig.cmake:358 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /Users/jon/Documents/smartweight_project/workspace/nrf/cmake/modules/kconfig.cmake:29 (include)
      /Users/jon/Documents/smartweight_project/workspace/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      /Users/jon/Documents/smartweight_project/workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /Users/jon/Documents/smartweight_project/workspace/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/f8037e9b83/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/f8037e9b83/opt/[email protected]/bin/python3.9 -B/Users/jon/Documents/smartweight_project/workspace/sta/build_9 -GNinja -DBOARD=thingy53_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/jon/Documents/smartweight_project/workspace/sta -S/Users/jon/Documents/smartweight_project/workspace/sta
    
     *  The terminal process terminated with exit code: 1. 

    Thanks Hakon,

    Jon

Related