zephyr 3.1.0 using pwm and rtc

I am using zephyr 3.1.0 and i build blinky pwm and rtc code from zephyr but it is not building i am using nucleo_u575zi_q board but in dts of board pwm and rtc is not there we can use overlay file but it is not showing correctly. If u have any idea about this then tell 


I:\zephyrproject\zephyr\samples\basic\blinky_pwm>west build -p -b nucleo_u575zi_q
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: I:/zephyrproject/zephyr/samples/basic/blinky_pwm
-- Found Python3: C:/Users/40025637/software/python.exe (found suitable exact version "3.10.5") found components: Interpreter
-- Cache files will be written to: I:/zephyrproject/zephyr/.cache
-- Zephyr version: 3.1.0 (I:/zephyrproject/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nucleo_u575zi_q
-- Found toolchain: gnuarmemb (C:/Users/40025637/gcc-arm-none-eabi-10.3-2021.10-win32/gcc-arm-none-eabi-10.3-2021.10)
-- Found BOARD.dts: I:/zephyrproject/zephyr/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q.dts
-- Generated zephyr.dts: I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/dts.cmake
Parsing I:/zephyrproject/zephyr/Kconfig
Loaded configuration 'I:/zephyrproject/zephyr/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q_defconfig'
Merged configuration 'I:/zephyrproject/zephyr/samples/basic/blinky_pwm/prj.conf'
Configuration saved to 'I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/.config'
Kconfig header saved to 'I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/40025637/gcc-arm-none-eabi-10.3-2021.10-win32/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build
-- west build: building application
[1/168] Generating include/generated/version.h
-- Zephyr version: 3.1.0 (I:/zephyrproject/zephyr), build: zephyr-v3.1.0
[12/168] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj
C:\Users\40025637\gcc-arm-none-eabi-10.3-2021.10-win32\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc.exe -DHSE_VALUE=8000000 -DKERNEL -DSTM32U575xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -II:/zephyrproject/zephyr/include/zephyr -II:/zephyrproject/zephyr/include -II:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/include/generated -II:/zephyrproject/zephyr/soc/arm/st_stm32/stm32u5 -II:/zephyrproject/zephyr/drivers -II:/zephyrproject/zephyr/soc/arm/st_stm32/common -II:/zephyrproject/modules/hal/cmsis/CMSIS/Core/Include -II:/zephyrproject/modules/hal/atmel/include -II:/zephyrproject/modules/hal/stm32/stm32cube/stm32u5xx/soc -II:/zephyrproject/modules/hal/stm32/stm32cube/stm32u5xx/drivers/include -II:/zephyrproject/modules/hal/stm32/stm32cube/stm32u5xx/drivers/include/Legacy -II:/zephyrproject/modules/hal/stm32/stm32cube/common_ll/include -isystem I:/zephyrproject/zephyr/lib/libc/minimal/include -isystem c:/users/40025637/gcc-arm-none-eabi-10.3-2021.10-win32/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/include -isystem c:/users/40025637/gcc-arm-none-eabi-10.3-2021.10-win32/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -Os -imacros I:/zephyrproject/zephyr/samples/basic/blinky_pwm/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/Users/40025637/gcc-arm-none-eabi-10.3-2021.10-win32/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi -imacros I:/zephyrproject/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=I:/zephyrproject/zephyr/samples/basic/blinky_pwm=CMAKE_SOURCE_DIR -fmacro-prefix-map=I:/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=I:/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c
In file included from I:/zephyrproject/zephyr/include/zephyr/toolchain/gcc.h:88,
from I:/zephyrproject/zephyr/include/zephyr/toolchain.h:50,
from I:/zephyrproject/zephyr/include/zephyr/kernel_includes.h:19,
from I:/zephyrproject/zephyr/include/zephyr/kernel.h:17,
from I:/zephyrproject/zephyr/include/zephyr/zephyr.h:18,
from I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:12:
I:/zephyrproject/zephyr/include/zephyr/device.h:96:39: error: '__device_dts_ord_DT_N_ALIAS_pwm_led0_P_pwms_IDX_0_PH_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
| ^~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
132 | #define _DO_CONCAT(x, y) x ## y
| ^
I:/zephyrproject/zephyr/include/zephyr/device.h:96:31: note: in expansion of macro '_CONCAT'
96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
| ^~~~~~~
I:/zephyrproject/zephyr/include/zephyr/device.h:291:37: note: in expansion of macro 'DEVICE_NAME_GET'
291 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
| ^~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/device.h:311:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
311 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
| ^~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:258:10: note: in expansion of macro 'DEVICE_DT_GET'
258 | .dev = DEVICE_DT_GET(DT_PWMS_CTLR_BY_IDX(node_id, idx)), \
| ^~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:326:34: note: in expansion of macro 'PWM_DT_SPEC_GET_BY_IDX'
326 | #define PWM_DT_SPEC_GET(node_id) PWM_DT_SPEC_GET_BY_IDX(node_id, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:17:44: note: in expansion of macro 'PWM_DT_SPEC_GET'
17 | static const struct pwm_dt_spec pwm_led0 = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
| ^~~~~~~~~~~~~~~
In file included from I:/zephyrproject/zephyr/include/zephyr/arch/arm/aarch32/arch.h:20,
from I:/zephyrproject/zephyr/include/zephyr/arch/cpu.h:19,
from I:/zephyrproject/zephyr/include/zephyr/kernel_includes.h:33,
from I:/zephyrproject/zephyr/include/zephyr/kernel.h:17,
from I:/zephyrproject/zephyr/include/zephyr/zephyr.h:18,
from I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:12:
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:213:32: error: 'DT_N_ALIAS_pwm_led0_P_pwms_IDX_0_VAL_channel' undeclared here (not in a function)
213 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:3043:24: note: in definition of macro 'DT_CAT'
3043 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:1049:2: note: in expansion of macro 'DT_PROP'
1049 | DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
| ^~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree/pwms.h:138:2: note: in expansion of macro 'DT_PHA_BY_IDX'
138 | DT_PHA_BY_IDX(node_id, pwms, idx, cell)
| ^~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree/pwms.h:212:2: note: in expansion of macro 'DT_PWMS_CELL_BY_IDX'
212 | DT_PWMS_CELL_BY_IDX(node_id, idx, channel)
| ^~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:259:14: note: in expansion of macro 'DT_PWMS_CHANNEL_BY_IDX'
259 | .channel = DT_PWMS_CHANNEL_BY_IDX(node_id, idx), \
| ^~~~~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:326:34: note: in expansion of macro 'PWM_DT_SPEC_GET_BY_IDX'
326 | #define PWM_DT_SPEC_GET(node_id) PWM_DT_SPEC_GET_BY_IDX(node_id, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:17:44: note: in expansion of macro 'PWM_DT_SPEC_GET'
17 | static const struct pwm_dt_spec pwm_led0 = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
| ^~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:213:25: note: in expansion of macro 'DT_CAT'
213 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:17:60: note: in expansion of macro 'DT_ALIAS'
17 | static const struct pwm_dt_spec pwm_led0 = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
| ^~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:213:32: error: 'DT_N_ALIAS_pwm_led0_P_pwms_IDX_0_VAL_period' undeclared here (not in a function)
213 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:3043:24: note: in definition of macro 'DT_CAT'
3043 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:1049:2: note: in expansion of macro 'DT_PROP'
1049 | DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
| ^~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree/pwms.h:138:2: note: in expansion of macro 'DT_PHA_BY_IDX'
138 | DT_PHA_BY_IDX(node_id, pwms, idx, cell)
| ^~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree/pwms.h:253:2: note: in expansion of macro 'DT_PWMS_CELL_BY_IDX'
253 | DT_PWMS_CELL_BY_IDX(node_id, idx, period)
| ^~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:260:13: note: in expansion of macro 'DT_PWMS_PERIOD_BY_IDX'
260 | .period = DT_PWMS_PERIOD_BY_IDX(node_id, idx), \
| ^~~~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/drivers/pwm.h:326:34: note: in expansion of macro 'PWM_DT_SPEC_GET_BY_IDX'
326 | #define PWM_DT_SPEC_GET(node_id) PWM_DT_SPEC_GET_BY_IDX(node_id, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:17:44: note: in expansion of macro 'PWM_DT_SPEC_GET'
17 | static const struct pwm_dt_spec pwm_led0 = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
| ^~~~~~~~~~~~~~~
I:/zephyrproject/zephyr/include/zephyr/devicetree.h:213:25: note: in expansion of macro 'DT_CAT'
213 | #define DT_ALIAS(alias) DT_CAT(DT_N_ALIAS_, alias)
| ^~~~~~
I:/zephyrproject/zephyr/samples/basic/blinky_pwm/src/main.c:17:60: note: in expansion of macro 'DT_ALIAS'
17 | static const struct pwm_dt_spec pwm_led0 = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
| ^~~~~~~~
[19/168] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'I:\zephyrproject\zephyr\samples\basic\blinky_pwm\build'

Related