<?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>NCS: How to check which board is selected?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83984/ncs-how-to-check-which-board-is-selected</link><description>I have custom board defined in DTS file. There will be multiple variants of boards, therefore I need to check which board is selected. How to check which board is selected by its &amp;quot;model&amp;quot; property? I need to check this compile time and also runtime if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jan 2022 14:58:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83984/ncs-how-to-check-which-board-is-selected" /><item><title>RE: NCS: How to check which board is selected?</title><link>https://devzone.nordicsemi.com/thread/349324?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 14:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e3def72-a1da-423c-836e-59c430087602</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;In runtime, properties in the devicetree can be accessed through Zephyr&amp;#39;s Devicetree API:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/api.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/api.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can look through the final devicetree of your project after compilation, it should be located in build/zephyr/zephyr.dts&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding flashing multiple images, is this the information you&amp;#39;re looking for?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>