Hello,
I have problem with configuration.
My project is based on the project: GitHub - nordic-auko/nRF5-ble-timesync-demo: nRF52 clock synchronization demo code.
Timesync project is intended to be built on cpunet, so also my project.
I want to add additional buttons, leds, leds controlled by pwm, pin for controlling pullup, and one wire. I have problem with pwm leds.
I made custom board based on nRF5340DK board (and I placed it in SDK folder)
aliases {
aliases {
aliases {
/ {
-- Found devicetree overlay: board_nrf5340_cpunet.overlay
devicetree error: /pwmleds/pwm_led_0: undefined node label 'pwm0'
CMake Error at C:/ncs/v3.1.1/zephyr/cmake/modules/dts.cmake:306 (execute_process):
execute_process failed command indexes:
1: "Child return code: 1"
C:/ncs/v3.1.1/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmak-- Configuring incomplete, errors occurred!
e/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:8 (find_package)
CMake Error at cmake/modules/sysbuild_extensions.cmake:530 (message):
CMake configure failed for Zephyr project: timesync_proj
Location: C:/_Nordic_TimeSync_MULTI/timesync_proj
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:21 (include)
C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/ncs/v3.1.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
/ {
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_ALIAS_pwm_ledcr_P_pwms_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcr_P_pwms_IDX_0_VAL_channel' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcr_P_pwms_IDX_0_VAL_period' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcg_P_pwms_IDX_0_VAL_channel' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcg_P_pwms_IDX_0_VAL_period' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_ALIAS_pwm_ledcb_P_pwms_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcb_P_pwms_IDX_0_VAL_channel' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:236:32: error: 'DT_N_ALIAS_pwm_ledcb_P_pwms_IDX_0_VAL_period' undeclared here (not in a function)
236 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_NODELABEL_ledr_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_ledr_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_norab12_fem_P_ctx_gpios_IDX_0_VAL_
pin'?
196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_NODELABEL_ledb_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_ledb_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_norab12_fem_P_ctx_gpios_IDX_0_VAL_
pin'?
196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_NODELABEL_ledl_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_ledl_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_norab12_fem_P_ctx_gpios_IDX_0_VAL_
pin'?
196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_NODELABEL_buttonbtn_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_buttonbtn_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~