devicetree error: /ipc/ipc0: undefined node label 'sram0_shared'

I had created one custom board for nrf5340 evk but now after upgrading to toolchain version 2.0.0 it is giving error

devicetree error: /ipc/ipc0: undefined node label 'sram0_shared'

  • Hi Vinay,

    Could you attach the entire error log that you get?

    Which IDE are you using?

    Best Regards,

    Priyanka

  • Hello,

    I have the same problem.

    It is aNRF5340 board connected to a NRF5340-DK, through the 'debug out' link.

    I'm using VSCode + nRF Connect 2.1.

    Content of the board Kconfig.board:

    # Copyright (c) 2022 Nordic Semiconductor ASA
    # SPDX-License-Identifier: Apache-2.0

    config BOARD_MR305_V1_1
         bool "MR305_V1_1"
         depends on SOC_NRF5340_CPUAPP_QKAA

    Here is my log :

    Building hello_world

    west build --build-dir /Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305 /Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world --pristine --board mr305_v1_1 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/antoine/Documents/Hot/Project22/dev"

    -- west build: generating a build system

    Loading Zephyr default modules (Zephyr base).

    -- Application: /Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world

    -- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter

    -- Cache files will be written to: /Users/antoine/Library/Caches/zephyr

    -- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)

    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")

    -- Board: mr305_v1_1

    -- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)

    -- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")

    -- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)

    -- Found BOARD.dts: /Users/antoine/Documents/Hot/Project22/dev/boards/arm/mr305_v1_1/mr305_v1_1.dts

    devicetree error: /ipc/ipc0: undefined node label 'sram0_shared'

    -- In: /Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr, command: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9;/opt/nordic/ncs/v2.1.0/zephyr/scripts/dts/gen_defines.py;--dts;/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr/zephyr.dts.pre;--dtc-flags;'';--bindings-dirs;/opt/nordic/ncs/v2.1.0/nrf/dts/bindings;/opt/nordic/ncs/v2.1.0/zephyr/dts/bindings;--header-out;/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr/include/generated/devicetree_unfixed.h.new;--device-header-out;/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr/include/generated/device_extern.h.new;--dts-out;/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr/zephyr.dts.new;--edt-pickle-out;/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305/zephyr/edt.pickle;--vendor-prefixes;/opt/nordic/ncs/v2.1.0/nrf/dts/bindings/vendor-prefixes.txt;--vendor-prefixes;/opt/nordic/ncs/v2.1.0/zephyr/dts/bindings/vendor-prefixes.txt

    CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/dts.cmake:230 (message):

      gen_defines.py failed with return code: 1

    Call Stack (most recent call first):

      /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)

      /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)

      /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)

      CMakeLists.txt:5 (find_package)

    -- Configuring incomplete, errors occurred!

    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/v2.1.0/bin/python3 -B/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world/build_MR305 -GNinja -DBOARD=mr305_v1_1 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=/Users/antoine/Documents/Hot/Project22/dev -S/Users/antoine/Documents/Hot/Project22/dev/Tests/hello_world

  • Hello,

    Someone managed to find a way out ?

    I've the same issue with:

    • nrf5340
    • nRF Connect for VS Code v2023.2.56
    • nRF Connect SDK 2.0.2
    • Custom board created from nrf5340_cpuapp QKAA Non-secure

    Compiling Hello World sample right after gives

    devicetree error: /ipc/ipc0: undefined node label 'sram0_shared'

    Thanks in advance.

    Yvan.

  • Could you take a look at this ticket and see if it helps.

    -Priyanka

  • Hello,

    I had the same issue. The link that you referred is a bit outdated.. We are working with NCS version 2.3.0

    Is there any porting guide for newer versions?

    Regards

Related