<?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>How to set up a new board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111282/how-to-set-up-a-new-board</link><description>We are currently thinking about implementing LE-Audio in CIS mode by reusing the sample program nRF5340_Adudio. 
 There are two types of boards to create: a transceiver board and a receiver board.Since the codec IC etc. are different from the sample nRF5340</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2024 22:03:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111282/how-to-set-up-a-new-board" /><item><title>RE: How to set up a new board</title><link>https://devzone.nordicsemi.com/thread/485232?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 22:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93ac0e08-c0da-4456-a959-82e892fcf306</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You didn&amp;#39;t say that you wanted to do that, but don&amp;#39;t edit the existing .dts files. That is not the way to do it in Zephyr.&lt;/p&gt;
&lt;p&gt;If you are creating a new board, then you can do either of the options that you suggest. I would say that the most &amp;quot;correct&amp;quot; way is to create your own board file. You can place this anywhere you want to outside the NCS root folder, and link this to your build system. If you are using Visual Studio Code, then entering this path once will cause it to stick to the VS Code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/board_support/defining_custom_board.html"&gt;Defining a custom board&lt;/a&gt;&amp;quot; section in our documentation covers this pretty well. Give it a go, and let me know if you are stuck.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is also an option to add a board .overlay file to your application. But if you do this, you will need to use this file (or a version of it) for every application that you are using your board. That is also an option. If so, just add a file called nrf5340dk_nrf5340_cpuapp.overlay, and the compiler should pick it up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In case there are sections that you want to edit, you can just copy them from the .dts file, and change whatever you like. It is also possible to remove entire properties using the /delete-property/ syntax, as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/howtos.html#use-devicetree-overlays"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/howtos.html#use-devicetree-overlays&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>