<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>parse error: undefined node label &amp;#39;pwm1&amp;#39; when building for 3.0.1 using nrf5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121777/parse-error-undefined-node-label-pwm1-when-building-for-3-0-1-using-nrf5340dk</link><description>I&amp;#39;m using 3.0.1 to compile an app for a nrf5340dk. It is building for 2.9.1, but errors on 3.0.1: 
 
 
 Line 51 is the first line of: 
 
 
 I thought that was the node label definition. 
 
 Here is the complete overlay:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jul 2025 12:43:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121777/parse-error-undefined-node-label-pwm1-when-building-for-3-0-1-using-nrf5340dk" /><item><title>RE: parse error: undefined node label 'pwm1' when building for 3.0.1 using nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/543354?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 12:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4701f30a-a6db-4d8b-b9e3-eacd0825c8ef</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to reproduce your error to get some more information from my own build log, but I was not able to reproduce your build error with this description. The zephyr/samples/boards/nordic/&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/boards/nordic/battery"&gt;battery&lt;/a&gt;&amp;nbsp;sample only supports thingy52/nrf52832 and&amp;nbsp;particle_xenon out of the box. It did not make a difference if I added your overlay because the build failed after generation, that is: when building the source code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried to use your overlay when building zephyr/samples/hello_world and I do not get the same error as you, but errors about the mipi_dbi node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another thing is an inconsistency regarding that in your latest build log you use v2.9.1 of the SDK while in the original post you used v3.0.2. The build error is also not identical with the first one being about pwm1 and the second being about pwm1_default.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is enough information here for us to guide you on how to fix the build error. Please clarify the following&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are you using the same .overlay as in your original post?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;What is the full path (within the SDK) to the sample you are using?&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When creating a build configuration, you need to select the toolchain and SDK version you are building with. Make sure to choose consistently to avoid confusion from conflicting errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, for future reference: Lesson 2 in the nRF Connect SDK Intermediate course on DevAcademy covers &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/troubleshooting-the-devicetree/"&gt;general troubleshooting tips for the devicetree&lt;/a&gt;. It does not have a specific example covering &amp;quot;undefined node label&amp;quot;, but it can be a good future reference.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: parse error: undefined node label 'pwm1' when building for 3.0.1 using nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/542303?ContentTypeID=1</link><pubDate>Sat, 12 Jul 2025 17:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5939aabc-357f-430a-9093-c41ae579e6dd</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;Sorry. I just tried with the battery sample and am getting the same error:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found BOARD.dts: /opt/nordic/ncs/v2.9.1/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
devicetree error: /soc/peripheral@50000000/pwm@22000: undefined node label &amp;#39;pwm1_default&amp;#39;
CMake Error at /opt/nordic/ncs/v2.9.1/zephyr/cmake/modules/dts.cmake:295 (execute_process):
  execute_process failed command indexes:

    1: &amp;quot;Child return code: 1&amp;quot;

Call Stack (most recent call first):
  /opt/nordic/ncs/v2.9.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /opt/nordic/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: battery

  Location: /Users/xxxxxxxxx/Projects/GitHub/xxxxxxxxx/battery
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:20 (include)
  /opt/nordic/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /opt/nordic/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /opt/nordic/ncs/v2.9.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I simply created a new app using the battery sample as a template, selected nrf5340dk as the board target, and tried to build it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: parse error: undefined node label 'pwm1' when building for 3.0.1 using nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/537181?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 12:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee92f47-e671-4cb2-b684-002bdf5d8138</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you attach the full build log? I&amp;#39;m curious if there&amp;#39;s anything else there.&lt;/p&gt;
&lt;p&gt;Could you compare it with the solution (&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/l4/l4_e2_sol"&gt;https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/l4/l4_e2_sol&lt;/a&gt;) in&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/topic/exercise-2-17/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/topic/exercise-2-17/&lt;/a&gt;&amp;nbsp;and see if you&amp;#39;ve missed any configuration?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>