Hello Everyone,
I am new to nordic devices, but i have been for the past 2 weeks trying to build something. First I have created a new board "Holyiot_21069" with Visual Studio code with "Create a new board", and checked all configurations to nrf5340 chip. This created all the files necessary, including the boar dts and pinctrl.dtsi files.
Now, I cant build a project, and the problem persists with the same error:
-- Found BOARD.dts: C:/ncs/v2.9.0/zephyr/boards/nordic/holyiot_21069/holyiot_21069_nrf5340_cpuapp.dts
Traceback (most recent call last):
File "C:\ncs\v2.9.0\zephyr\scripts\dts\gen_defines.py", line 1120, in <module>
main()
File "C:\ncs\v2.9.0\zephyr\scripts\dts\gen_defines.py", line 59, in main
edt = edtlib.EDT(args.dts, args.bindings_dirs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 2069, in __init__
self._finish_init()
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 2077, in _finish_init
self._init_nodes()
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 2348, in _init_nodes
node._init_props(default_prop_types=self._default_prop_types,
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 1491, in _init_props
self._init_prop(prop_spec, err_on_deprecated)
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 1512, in _init_prop
val = self._prop_val(name, prop_type, prop_spec.deprecated,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 1608, in _prop_val
return prop.to_nums()
^^^^^^^^^^^^^^
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\dtlib.py", line 404, in to_nums
_err("expected property '{0}' on {1} in {2} to be assigned with "
File "C:\ncs\v2.9.0\zephyr\scripts\dts\python-devicetree\src\devicetree\dtlib.py", line 2095, in _err
raise DTError(msg)
devicetree.dtlib.DTError: expected property 'gpios' on /soc/peripheral@50000000/gpio@842500/gpio_led in C:/ncs/v2.9.0/zephyr/misc/empty_file.c to be assigned with 'gpios = < (number) (number) ... >;', not 'gpios = < &gpio0 0x14 0x0 >;'
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"
This is my pinctrl.dtsi and dts files:
/* * Copyright (c) 2023 Your Name * SPDX-License-Identifier: Apache-2.0 */ &pinctrl { spi1_default: spi1_default { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 0, 5)>, <NRF_PSEL(SPIM_MISO, 0, 6)>; }; }; spi1_sleep: spi1_sleep { group1 { psels = <NRF_PSEL(SPIM_SCK, 0, 7)>, <NRF_PSEL(SPIM_MOSI, 0, 5)>, <NRF_PSEL(SPIM_MISO, 0, 6)>; low-power-enable; }; }; };
/dts-v1/; #include <nordic/nrf5340_cpuapp_qkaa.dtsi> #include "holyiot_21069-pinctrl.dtsi" / { model = "Holyiot 21069 nRF5340 Application Core"; compatible = "nordic,holyiot-21069-cpuapp"; chosen { zephyr,sram = &sram0_image; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,sram-secure-partition = &sram0_s; zephyr,sram-non-secure-partition = &sram0_ns; }; }; &spi1 { compatible = "nordic,nrf-spim"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; status = "okay"; cs-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; /* Optional CS pin (P0.15) */ }; &gpio0 { status = "okay"; gpio_led: gpio_led { gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; label = "LED 0"; gpio-hog; }; start_button: start_button { gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; label = "Start Button"; gpio-hog; }; reset_button: reset_button { gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; label = "Reset Button"; gpio-hog; }; drdy_input: drdy_input { gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; label = "DRDY Input"; gpio-hog; input; bias-pull-up; }; }; #include "holyiot_21069-cpuapp_partitioning.dtsi" #include "holyiot_21069-shared_sram.dtsi"