multiple definition of `log_const_led_pwm' on ncs v2.5.2

I would like to test Pulse Width Modulation (PWM) on nRF52832 DK. But west build failed with the following messages.

C:\ncs\v2.5.2\nrf\samples\pwm_52832>west build -b nrf52dk_nrf52832
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.5.2/nrf/samples/pwm_52832
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)

...

[241/246] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe  -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf  && cmd.exe /C "cd /D C:\ncs\v2.5.2\nrf\samples\pwm_52832\build\zephyr && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/led/libdrivers__led.a(led_pwm.c.obj):C:/ncs/v2.5.2/zephyr/drivers/led/led_pwm.c:22: multiple definition of `log_const_led_pwm'; app/libapp.a(led_pwm.c.obj):C:\ncs\v2.5.2\nrf\samples\pwm_52832\build/../src/modules/led_pwm.c:8: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'C:\ncs\v2.5.2\nrf\samples\pwm_52832\build'

Related