<?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>Adding another peripheral to the project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122493/adding-another-peripheral-to-the-project</link><description>Hello dear fellow developers, 
 I am solving the problem of how to add another peripheral to the project. 
 
 I would like to know a universal procedure for adding any peripheral that is included in the development board (any development board from Nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 29 Jun 2025 13:49:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122493/adding-another-peripheral-to-the-project" /><item><title>RE: Adding another peripheral to the project</title><link>https://devzone.nordicsemi.com/thread/540793?ContentTypeID=1</link><pubDate>Sun, 29 Jun 2025 13:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1bd48b7-9d5c-4d63-aac0-c81fc2f567a1</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding another peripheral to the project</title><link>https://devzone.nordicsemi.com/thread/540418?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 07:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75da761d-b8ab-4e5d-9d8e-5212f81aeb85</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Hard to say yes or no here. Language is not precise enough.&lt;/p&gt;
&lt;p&gt;You ask initially about&amp;nbsp;&lt;em&gt;adding&lt;/em&gt; a peripherial but your DTS overlay only works for parametrising (changing) an&amp;nbsp;&lt;em&gt;existing&lt;/em&gt; peripherial defined in board or SOC device tree.&lt;/p&gt;
&lt;p&gt;Note that you&amp;nbsp;&lt;em&gt;can&lt;/em&gt; define your own peripherial in the DTS overlay, but syntax is different of course.&lt;/p&gt;
&lt;p&gt;Using&amp;nbsp;&lt;em&gt;your own&lt;/em&gt; peripherial can also require a DTS binding if there is no zephyr (or nordic) driver or if the driver does not exactly do what you wanted it to do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Writing a procedure that covers all of these cases will be rather hard.&lt;/p&gt;
&lt;p&gt;Note that vs code build config can currently break if you had DTS syntax errors. I recommend using &lt;code&gt;west build&lt;/code&gt; command line tool as workaround.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nitpick: A ton of (modern-ish) drivers auto enable if they find a compatible DTS entry, so you usually don&amp;#39;t have to enable them in prj.conf manually.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>