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

  • 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

  • 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

Related