PWM-LED Configuration

Hello Team,

I am working with Thingy91x and I was checking whether is pwm led or pwm gpio can be configured for nRF5340 of Thingy 91x. If possible will you please let me know the steps I need to follow to configure pwm channel in Thingy 91x nrf5340 and get pwm output.

Kindly please let me know the limitations for this steps.

Thanks and regards

Vinay

Parents
  • Yes, PWM can be configured for the nRF5340 on the Thingy:91 X

    Step 1 :- PWM in prj.conf

    CONFIG_PWM=y
    CONFIG_PWM_LOG_LEVEL_DBG=y
    CONFIG_LED=y
    CONFIG_LED_PWM=y

    Step 2 :- Pin Control & PWM in Devicetree Overlay

    &pinctrl {
        pwm0_default_alt: pwm0_default_alt {
            group1 {
                psels = <NRF_PSEL(PWM_OUT0, 0, 30)>;
            };
        };
    
        pwm0_sleep_alt: pwm0_sleep_alt {
            group1 {
                psels = <NRF_PSEL(PWM_OUT0, 0, 30)>;
                low-power-enable;
            };
        };
    };
    &pwm0 {
        status = "okay";
        pinctrl-0 = <&pwm0_default_alt>;
        pinctrl-1 = <&pwm0_sleep_alt>;
        pinctrl-names = "default", "sleep";
    };
    
    / {
        pwmleds {
            compatible = "pwm-leds";
            led_pwm_0 {
                pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
                label = "PWM LED 0";
            };
        };
    
        aliases {
            pwm-led0 = &led_pwm_0;
        };
    };

    Step 3 :- application code

    #include <zephyr/device.h>
    #include <zephyr/drivers/pwm.h>
    
    #define PWM_PERIOD_NS   20000000
    #define PWM_PULSE_WIDTH 1400000
    
    static const struct pwm_dt_spec pwm_led0 =
        PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0));
    
    int main(void) {
        if (!pwm_is_ready_dt(&pwm_led0)) {
            return 0;
        }
        pwm_set_dt(&pwm_led0, PWM_PERIOD_NS, PWM_PULSE_WIDTH);
        return 0;
    }


    Step 4 :- thingy91x_nrf9151_ns.overlay (external power fix)

    &exp_board_enable {
    /delete-property/ output-low;
    output-high;
    };

    Build with west build -b thingy91x/nrf5340/cpuapp and flash. Let me know if you hit any issues!







  • Hello Nishant,

    Thank you for your reply. I really appreciate it.

    But I am facing issue while building this configuration.

    I am adding the logs and the project zip file which I have configured as per your guidance.

    Thingy91x_nrf5430_pwm.zip

    (v3.0.0) C:\ncs\v3.0.0\nrf> west build -b thingy91x/nrf5340/cpuapp C:\Users\11221\Downloads\Thingy91x_nrf5430_pwm -p always
    -- west build: making build dir C:\ncs\v3.0.0\nrf\build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    Parsing C:/ncs/v3.0.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/build/_sysbuild/empty.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/ncs/v3.0.0/nrf/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v3.0.0/nrf/build/_sysbuild/autoconf.h'
    --
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Found devicetree overlay: C:/ncs/v3.0.0/nrf/modules/mcuboot/flash_sim.overlay
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/dts.cmake
    
    warning: UART_NRFX (defined at drivers/serial\Kconfig.nrfx:6) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: (DT_HAS_NORDIC_NRF_UART_ENABLED ||
    DT_HAS_NORDIC_NRF_UARTE_ENABLED) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_NRFX and/or look up UART_NRFX in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: LOG_DEFAULT_LEVEL (defined at subsys/logging\Kconfig.filtering:13) was assigned the value
    '0' but got the value ''. Check these unsatisfied dependencies: LOG (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
    LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
    subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
    and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.
    
    
    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging\Kconfig.mode:29) was selected
    (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_APP is enabled.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_NET is enabled.
    
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/subsys/bootloader/image/log_minimal.conf'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v3.0.0/nrf/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    MCUBoot bootloader key file: C:/ncs/v3.0.0/bootloader/mcuboot/root-ec-p256.pem
    CMake Warning at CMakeLists.txt:393 (message):
      WARNING: Using default MCUboot signing key file, this file is for debug use
      only and is not secure!
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v3.0.0/nrf/build/mcuboot
    --
       ************************************
       * Running CMake for empty_net_core *
       ************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.0.0/nrf/samples/nrf5340/empty_net_core
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/zephyr.dts
    -- Generated pickled edt: C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/nrf5340/empty_net_core/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v3.0.0/nrf/build/empty_net_core/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v3.0.0/nrf/build/empty_net_core
    --
       *************************
       * Running CMake for b0n *
       *************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/b0n/zephyr/zephyr.dts
    -- Generated pickled edt: C:/ncs/v3.0.0/nrf/build/b0n/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v3.0.0/nrf/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v3.0.0/nrf/build/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/build/b0n/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v3.0.0/nrf/build/b0n/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v3.0.0/nrf/build/b0n/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:2180 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v3.0.0/nrf/build/b0n
    --
       ************************
       * Running CMake for b0 *
       ************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.0.0/nrf/samples/bootloader
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/b0/zephyr/zephyr.dts
    -- Generated pickled edt: C:/ncs/v3.0.0/nrf/build/b0/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/ncs/v3.0.0/nrf/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v3.0.0/nrf/build/b0/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v3.0.0/nrf/build/b0/zephyr/dts.cmake
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_APP is enabled.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_NET is enabled.
    
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/bootloader/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/bootloader/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/build/b0/zephyr/.config.sysbuild'
    Configuration saved to 'C:/ncs/v3.0.0/nrf/build/b0/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v3.0.0/nrf/build/b0/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v3.0.0/nrf/build/b0
    --
       *******************************************
       * Running CMake for Thingy91x_nrf5430_pwm *
       *******************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/11221/Downloads/Thingy91x_nrf5430_pwm
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/Users/11221/Downloads/Thingy91x_nrf5430_pwm/thingy91x_nrf5340_cpuapp.overlay
    devicetree error: /aliases: undefined node label 'led_pwm_0'
    CMake Error at C:/ncs/v3.0.0/zephyr/cmake/modules/dts.cmake:305 (execute_process):
      execute_process failed command indexes:
    
        1: "Child return code: 1"
    
    Call Stack (most recent call first):
      C:/ncs/v3.0.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:2 (find_package)
    
    -- Configuring incomplete, errors occurred!
    
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: Thingy91x_nrf5430_pwm
    
      Location: C:/Users/11221/Downloads/Thingy91x_nrf5430_pwm
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v3.0.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/ncs/v3.0.0/nrf/build/CMakeFiles/CMakeOutput.log".
    ←[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-BC:\ncs\v3.0.0\nrf\build' -GNinja -DBOARD=thingy91x/nrf5340/cpuapp '-SC:\ncs\v3.0.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\Users\11221\Downloads\Thingy91x_nrf5430_pwm'
    ←[0m
    (v3.0.0) C:\ncs\v3.0.0\nrf>

    Thanks and regards,

    Vinay

  • Your overlay is trying to use a pwm_led0 (or similar) alias that doesn't exist for the thingy91x/nrf5340/cpuapp board. This is similar to a known issue where a sample or application expects a specific DeviceTree node that the target board doesn't provide

    1 :Follow to fix this 

    Define the alias in your overlay file. In your thingy91x_nrf5340_cpuapp.overlay, you need to properly define the led_pwm_0 node and add it under /aliases.

    / {
    aliases {
    led-pwm-0 = &pwm_led0;
    };

    pwmleds {
    compatible = "pwm-leds";
    pwm_led0: pwm_led_0 {
    pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
    };
    };
    };

    Adjust the PWM instance, channel, and period to match your hardware.

    1. Ensure the PWM peripheral is enabled in your prj.conf:
      CONFIG_PWM=y
      CONFIG_PWM_NRFX=y
  • Hi Nishant,

    Thank you for your response.

    Now I am able to build and flash pwm binary after the modification mentioned by you.

    But how I can check PWM Signal, as we have configured pwm0 channel to P0.30 how we can check the output channel of PWM output.

    Thanks and regards,

    Vinay

  • To confirm the PWM signal on P0.30, you would typically use an oscilloscope or logic analyzer connected to that pin on your board.

    i suggest you to go through in-depth guidance on PWM configuration and testing, the Nordic Developer Academy course on nRF Connect SDK Intermediate (Lesson 4). [PWM exercise]

  • Hi Nishant,

    Yes I know. But is there any test points or pins available in Thingy 91x nRF5340 pcb. Or we have to tap MCU leg to probe the line.?

    Thanks and regards,

    vinay

Reply Children
  • The current measurement and debug board connector (P9) on the Thingy:91 X exposes the nRF9151 SiP's TRACE pins, which are connected to nRF5340 GPIO pins P0.30–P1.01 (TRACE0–TRACE3 and CLK). These are physically accessible on the P9 connector.

    however i suggest you to Review PCA20065_Schematic_And_PCB.pdf (available in the Thingy:91 X hardware files) to identify if there is an accessible pad or trace near P0.30 on the PCB.

    last option will be to tap MCU leg to probe the line.

  • Hi Nishant,

    We have to add thingy91x_nrf9151_ns.overlay to extra devicetree overlays in build configuration right?

    Thanks and regards,

    Vinay

  • hi vinay,

    yes add thingy91x_nrf9151_ns.overlay to extra devicetree overlays in build configuration, and go through schematic to get that pin,

    thanks and regards

    Nishant

  • Hi Nishant,

    Thank you for the quick responses. I really appreciate it.

    I have added thingy91x_nrf9151_ns.overlay to extra devicetree overlays in build configuration. But I am facing some issues while building the configuration once I add this overlay.

    Adding log file for better understanding.

     *  Executing task: nRF Connect: Generate config thingy91x/nrf5340/cpuapp for d:\Projects\Umbrenta\Thingy91x_nrf5430_pwm 
    
    Building Thingy91x_nrf5430_pwm
    west build --build-dir d:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build d:/Projects/Umbrenta/Thingy91x_nrf5430_pwm --pristine --board thingy91x/nrf5340/cpuapp -- -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE="prj.conf" -DDTC_OVERLAY_FILE=thingy91x_nrf5340_cpuapp.overlay -DEXTRA_DTC_OVERLAY_FILE=thingy91x_nrf9151_ns.overlay
    
    -- west build: generating a build system
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    Parsing C:/ncs/v3.0.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/_sysbuild/empty.conf'
    Merged configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/_sysbuild/empty.conf'
    Configuration saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/zephyr/.config'
    Kconfig header saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/_sysbuild/autoconf.h'
    -- 
       *****************************
       * Running CMake for mcuboot *
       *****************************
    -- Application: C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Found devicetree overlay: C:/ncs/v3.0.0/nrf/modules/mcuboot/flash_sim.overlay
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/edt.pickle
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/dts.cmake
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    Loading Zephyr default modules (Zephyr base).
    
    warning: UART_NRFX (defined at drivers/serial\Kconfig.nrfx:6) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: (DT_HAS_NORDIC_NRF_UART_ENABLED ||
    DT_HAS_NORDIC_NRF_UARTE_ENABLED) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_NRFX and/or look up UART_NRFX in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: LOG_DEFAULT_LEVEL (defined at subsys/logging\Kconfig.filtering:13) was assigned the value
    '0' but got the value ''. Check these unsatisfied dependencies: LOG (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
    LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
    subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
    and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.
    
    
    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging\Kconfig.mode:29) was selected
    (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_APP is enabled.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_NET is enabled.
    
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/subsys/bootloader/image/log_minimal.conf'
    Merged configuration 'C:/ncs/v3.0.0/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
    Merged configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    MCUBoot bootloader key file: C:/ncs/v3.0.0/bootloader/mcuboot/root-ec-p256.pem
    CMake Warning at CMakeLists.txt:393 (message):
      WARNING: Using default MCUboot signing key file, this file is for debug use
      only and is not secure!
    
    
    Loading Zephyr default modules (Zephyr base).
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/mcuboot
    -- 
       ************************************
       * Running CMake for empty_net_core *
       ************************************
    -- Application: C:/ncs/v3.0.0/nrf/samples/nrf5340/empty_net_core
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/zephyr.dts
    -- Generated pickled edt: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/edt.pickle
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/nrf5340/empty_net_core/prj.conf'
    Merged configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/.config.sysbuild'
    Configuration saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/.config'
    Kconfig header saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/empty_net_core
    -- 
       *************************
       * Running CMake for b0n *
       *************************
    -- Application: C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    Loading Zephyr default modules (Zephyr base).
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/zephyr.dts
    -- Generated pickled edt: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/edt.pickle
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/.config.sysbuild'
    Configuration saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/.config'
    Kconfig header saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:1002 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v3.0.0/zephyr/CMakeLists.txt:2180 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0n
    -- 
       ************************
       * Running CMake for b0 *
       ************************
    -- Application: C:/ncs/v3.0.0/nrf/samples/bootloader
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    Loading Zephyr default modules (Zephyr base).
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/zephyr.dts
    -- Generated pickled edt: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/edt.pickle
    -- Generated zephyr.dts: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/dts.cmake
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_APP is enabled.
    
    
    warning: Deprecated symbol SOC_DCDC_NRF53X_NET is enabled.
    
    
    warning: Deprecated symbol NFCT_PINS_AS_GPIOS is enabled.
    
    
    warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.
    
    Parsing C:/ncs/v3.0.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/bootloader/prj.conf'
    Merged configuration 'C:/ncs/v3.0.0/nrf/samples/bootloader/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/.config.sysbuild'
    Configuration saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/.config'
    Kconfig header saved to 'D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/b0
    -- 
       *******************************************
       * Running CMake for Thingy91x_nrf5430_pwm *
       *******************************************
    -- Application: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm
    -- CMake version: 3.21.0
    Loading Zephyr default modules (Zephyr base).
    -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v3.0.0/zephyr/.cache
    -- Zephyr version: 4.0.99 (C:/ncs/v3.0.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v3.0.0/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: thingy91x_nrf5340_cpuapp.overlay
    -- Found devicetree overlay: thingy91x_nrf9151_ns.overlay
    -- Configuring incomplete, errors occurred!
    -- Configuring incomplete, errors occurred!
    See also "D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm/build/CMakeFiles/CMakeOutput.log".
    devicetree error: ./thingy91x_nrf9151_ns.overlay:2 (column 1): parse error: undefined node label 'exp_board_enable'
    CMake Error at C:/ncs/v3.0.0/zephyr/cmake/modules/dts.cmake:305 (execute_process):
      execute_process failed command indexes:
    
        1: "Child return code: 1"
    
    Call Stack (most recent call first):
      C:/ncs/v3.0.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:2 (find_package)
    
    
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: Thingy91x_nrf5430_pwm
    
      Location: D:/Projects/Umbrenta/Thingy91x_nrf5430_pwm
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v3.0.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v3.0.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bd:\Projects\Umbrenta\Thingy91x_nrf5430_pwm\build' -GNinja -DBOARD=thingy91x/nrf5340/cpuapp -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=prj.conf -DDTC_OVERLAY_FILE=thingy91x_nrf5340_cpuapp.overlay -DEXTRA_DTC_OVERLAY_FILE=thingy91x_nrf9151_ns.overlay '-SC:\ncs\v3.0.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=d:\Projects\Umbrenta\Thingy91x_nrf5430_pwm'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    Thanks and regards,

    Vinay

  •  in thingy91x_nrf9151_ns.overlay contains something like:

    &exp_board_enable {
    ...
    };

    remove this reference and try again

Related