<?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>Program custom board ID in ROM in nRF5240 with nrf sdk 16.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113872/program-custom-board-id-in-rom-in-nrf5240-with-nrf-sdk-16-0-0</link><description>Hi, 
 
 There is one board level hardware change in our new board design that requires different GPIO behavior. 
 Is there a way to program board revision number in ROM (not cleaned by DFU process), so it can be retrieved in the firmware and used to control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2024 08:03:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113872/program-custom-board-id-in-rom-in-nrf5240-with-nrf-sdk-16-0-0" /><item><title>RE: Program custom board ID in ROM in nRF5240 with nrf sdk 16.0.0</title><link>https://devzone.nordicsemi.com/thread/497954?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 08:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7644f2-c11e-4ba1-9013-324d6e969e8b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &amp;#39;CUSTOMER&amp;#39; range in the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uicr.html"&gt;UICR&lt;/a&gt; (User Information Configuration Registers) consists of non-volatile registers that are suitable for storing one-time configurations, such as board revisions and serial numbers.&lt;/p&gt;
&lt;p&gt;Example&amp;nbsp;for writing to a UICR.CUSTOMER register with the debugger:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Set UICR.CUSTOMER[0] register
nrfjprog --memwr 0x10001080 --val 0x12345&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Code to read the register from the application code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t board_rev = NRF_UICR-&amp;gt;CUSTOMER[0]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>