<?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>Issues with custom board files &amp;amp; simple peripherals.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125489/issues-with-custom-board-files-simple-peripherals</link><description>I&amp;#39;m bringing up a custom board, working through the peripherals one at a time. Unfortunately, I haven&amp;#39;t gotten very far before things started misbehaving. One part of the design will be an RGB status LED, with PWM for colour &amp;amp; intensity. Here&amp;#39;s a snippet</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Nov 2025 07:50:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125489/issues-with-custom-board-files-simple-peripherals" /><item><title>RE: Issues with custom board files &amp; simple peripherals.</title><link>https://devzone.nordicsemi.com/thread/554062?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 07:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cddf3117-8fe4-4046-9ccf-83b6c18bb1b3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Al&lt;/p&gt;
&lt;p&gt;I see. I guess we don&amp;#39;t have any specific coverage of using multiple PWM channels no, and for learning purposes the Devacademy is the best resource we have. Other things to check out:&lt;/p&gt;
&lt;p&gt;PWM API:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_pwm.html"&gt;https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_pwm.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Application development in NCS:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The DevZone blog:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog"&gt;Blogs&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The DevZone NCS project collection:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordicprojects/b/nrf_connect_sdk_projects"&gt;nRF Connect SDK projects&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These are at least some good starting points to read up on. Let me know if you&amp;#39;re looking for anything in specific and I&amp;#39;ll try to help you dig it out. There is a lot of documentation, so I understand the confusion&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with custom board files &amp; simple peripherals.</title><link>https://devzone.nordicsemi.com/thread/553902?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2025 05:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d05d5e-7afc-4307-a740-f9a1818f1342</guid><dc:creator>Monkeytronics</dc:creator><description>&lt;p&gt;The dev academy course is great. But it only has a single PWM channel in the example - so didn&amp;#39;t address the aspect that was confusing me (I appreciate that it&amp;#39;s on me to learn how device tree works though). Is dev academy the only nrf connect specific resource for developers, or would you recommend other resources? It&amp;#39;s all a bit new, but I&amp;#39;m keen to read around as much as possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with custom board files &amp; simple peripherals.</title><link>https://devzone.nordicsemi.com/thread/553771?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2025 07:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93de775-6e53-4ba9-b8e6-fb756532cff1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The PWM lesson in our NCS DevAcademy course available &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/"&gt;here&lt;/a&gt;&amp;nbsp;should cover generic PWM usage. If you think anything specific is missing from it, please let me know and I&amp;#39;ll chase down further documentation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with custom board files &amp; simple peripherals.</title><link>https://devzone.nordicsemi.com/thread/553750?ContentTypeID=1</link><pubDate>Sun, 09 Nov 2025 22:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da507996-5026-4dda-a492-2e7baccdca39</guid><dc:creator>Monkeytronics</dc:creator><description>&lt;p&gt;Figured it out. It&amp;#39;s in the device tree code. I was defining the 3 PWMs as separate PWM instances: I should have defined one PWM with 3 channels like this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PRO: Should only need to do this stuff once.&lt;/p&gt;
&lt;p&gt;CON:&amp;nbsp;I can&amp;#39;t find great documentation for this stuff. Am I missing it? Would appreciate a link.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	...
	
	pwm0_default: pwm0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 0)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT1, 0, 1)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT2, 0, 2)&amp;gt;;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 0)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT1, 0, 1)&amp;gt;,
				&amp;lt;NRF_PSEL(PWM_OUT2, 0, 2)&amp;gt;;
			low-power-enable;
		};
	};

    ...
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>