Configuring PIN P2.07 as UART RX for nrf54l15 custom board

Hello Team,

I want to configure P2.07 as UART RX for my custom board.

But when I clear the already assigned property as led2 for this pins from the pin editor gui, I am getting below error.

devicetree error: 'gpios' is marked as required in 'properties:' in C:/ncs/v2.9.0/zephyr/dts/bindings\led\gpio-leds.yaml, but does not appear in <Node /leds/led_1 in 'C:/ncs/v2.9.0/zephyr/misc/empty_file.c'>
CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/dts.cmake:295 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"

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


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: Code

  Location: C:/Payal/Project/Gas_meter/gas_meter_base_fw/Code
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:20 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Payal/Project/Gas_meter/gas_meter_base_fw/Code/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\Payal\Project\Gas_meter\gas_meter_base_fw\Code\build' -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/payal/project/gas_meter/gas_meter_base_fw/code '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Payal\Project\Gas_meter\gas_meter_base_fw\Code'

How can I solve this? I don't want to use P2.07 as led

Thanks

Parents
  • Hello,

    You need to delete the LED (led2) node and aliases entirely in the devicetree. The error you are seeing occurs because the gpio-leds binding requires the gpios property for each LED node, and simply deleting the gpios property from led2 (or led_1 in your case) leaves the node incomplete, causing a Devicetree validation error.

    Try the following way to delete the node for LED

    / {
        aliases {
            /delete-property/ led2;  // or led_1, depending on your alias naming
        };
        /delete-node/ &led2;        // or &led_1, depending on your node naming
    };

Reply
  • Hello,

    You need to delete the LED (led2) node and aliases entirely in the devicetree. The error you are seeing occurs because the gpio-leds binding requires the gpios property for each LED node, and simply deleting the gpios property from led2 (or led_1 in your case) leaves the node incomplete, causing a Devicetree validation error.

    Try the following way to delete the node for LED

    / {
        aliases {
            /delete-property/ led2;  // or led_1, depending on your alias naming
        };
        /delete-node/ &led2;        // or &led_1, depending on your node naming
    };

Children
  • Hi,

    I tried the suggested way to delete the node for LED, but getting the following error

    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\Payal\Project\test\test_base_fw_logs_ble\test_base_fw\Code\build' -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/payal/project/test/test_base_fw_logs_ble/test_base_fw/code '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Payal\Project\test\test_base_fw_logs_ble\test_base_fw\Code'

Related