nRF7002DK board target nrf7002dk_nrf5340_cpuapp_ns is not working for v2.7.0-rc3

Hello,

I wanted to evaluate the nRF53 platform with nrf connect SDK so I got new nRF7002DK board. I have following versions of all tools installed.

- nRF connect SDK :- v2.7.0-rc3

- Toolchain version :- v2.6.0

- Board :- nRF7002DK

When I tried to do the build configuration I am getting following error.

-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
CMake Warning at D:/ncs/v2.7.0-rc3/zephyr/cmake/modules/boards.cmake:110 (message):
  Deprecated BOARD=nrf7002dk_nrf5340_cpuapp_ns specified, board automatically
  changed to: nrf7002dk/nrf5340/cpuapp_ns.
Call Stack (most recent call first):
  D:/ncs/v2.7.0-rc3/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  D:/ncs/v2.7.0-rc3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  D:/ncs/v2.7.0-rc3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


CMake Error at D:/ncs/v2.7.0-rc3/zephyr/cmake/modules/boards.cmake:320 (message):
  Board qualifiers `/nrf5340/cpuapp_ns` for board `nrf7002dk` not found.
  Please specify a valid board target.

  Valid board targets for nrf7002dk are:

  nrf7002dk/nrf5340/cpuapp

  nrf7002dk/nrf5340/cpuapp/ns

  nrf7002dk/nrf5340/cpuapp/nrf7001

  nrf7002dk/nrf5340/cpuapp/nrf7001/ns

  nrf7002dk/nrf5340/cpunet

  nrf7002dk/nrf5340/cpunet/nrf7001

Call Stack (most recent call first):
  D:/ncs/v2.7.0-rc3/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  D:/ncs/v2.7.0-rc3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  D:/ncs/v2.7.0-rc3/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)

It works with board target nrf7002dk_nrf5340_cpuapp. Can someone help me solve this issue as i want to work with trusted unit so want to select _ns version of board.

Thanks

  • Did you close the build configuration window between switching SDK version? You will need to do it after switching. 

    I see know that the T-FM secure sample needed more configuration that what I initially believed 

    Regards

    Runar

  • I deleted everything including vscode restarted my machine and did fresh setup only for 2.7.0.

    There is no improvement. Build configuration window still shows same board types as mentioned in comment above.

    Regards,

  • Facing exactly the same issue as I upgraded to 2.7.0. Tried this on azure_iot_hub test app:

    • Build works without issues for nrf9160dk_nrf9160_ns
    • Build fails for nrf5340dk_nrf5340_cpuapp_ns with nrf7002ek SHIELD with error 
      nrf/modules/cjson/os/cJSON_os.c:15: undefined reference to `k_malloc'
    • Build fails for nrf7002dk_nrf5340_cpuapp_ns with above mentioned error 
      Board qualifiers `/nrf5340/cpuapp_ns` for board `nrf7002dk` not found.

    The one thing I noticed between nrf5340dk and nrf7002dk build logs, is in the deprecated board warning: 
     the new name for nrf5340dk has cpuapp/ns separated by '/', while in nrf7002dk it's still cpuapp_ns:

    CMake Warning at /src/west/zephyr/cmake/modules/boards.cmake:110 (message):
    Deprecated BOARD=nrf7002dk_nrf5340_cpuapp_ns specified, board automatically
    changed to: nrf7002dk/nrf5340/cpuapp_ns.

    vs

    CMake Warning at /src/west/zephyr/cmake/modules/boards.cmake:110 (message):
    Deprecated BOARD=nrf5340dk_nrf5340_cpuapp_ns specified, board automatically
    changed to: nrf5340dk/nrf5340/cpuapp/ns.

    All tests were performed with nrfutil and toolchains manager the upgraded to latest versions, and 2.7.0 toolchain with 2.7.0 NRF Connect SDK installed.

  • Update:

    I was able to finally build for nrf7002dk by changing cpuapp_ns to cpuapp/ns in nrf/boards/deprecated.cmake:

    # Wi-Fi boards
    set(nrf7002dk_nrf5340_cpuapp_DEPRECATED nrf7002dk/nrf5340/cpuapp)
    set(nrf7002dk_nrf5340_cpuapp_ns_DEPRECATED nrf7002dk/nrf5340/cpuapp/ns)
    
    set(nrf7002dk_nrf7001_nrf5340_cpuapp_DEPRECATED nrf7002dk/nrf5340/cpuapp/nrf7001)
    set(nrf7002dk_nrf7001_nrf5340_cpuapp_ns_DEPRECATED nrf7002dk/nrf5340/cpuapp/ns/nrf7001)
    

  • Update #2:

    I ended up reverting back to 2.6.99-cs2. In 2.7.0 I faced issues with mqtt+TLS, I wasn't able to build azure_iot_client for nrf7002dk (not enough flash size)...

Related