<?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>Production config in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108477/production-config-in-nrf-connect-sdk</link><description>Hello DevZone, 
 I am working on nRF Connect SDK 2.5.0 in VS Code developing Zigbee End Device. 
 Trying to find where I can store serrial number of my devices. In the SDK 4.2.0 for Thread and Zigbee I used production config for this.I generated production</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2024 15:00:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108477/production-config-in-nrf-connect-sdk" /><item><title>RE: Production config in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/471084?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 15:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aa60795-9d28-4a66-9b55-d10d2fa2e0f4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I see. In that case, I think that the UICR would be an appropriate place. Please see the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=5_0_0_3_4_0_2#register.CUSTOMER-0-31"&gt;UICR documentation&lt;/a&gt;. As you can see, you have 32 register, each 4 bytes available.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The address of these registers on the nRF52840 is 0x10001080 + n*0x4, where n = 0 .. 31.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any Nordic tools to generate hex files for this, but you can either read on &lt;a href="https://developer.arm.com/documentation/ka003292/latest/"&gt;ARM&amp;#39;s website&lt;/a&gt;&amp;nbsp;what the format of these .hex files are (and then write some python scripts that generate these files), or you can program the data directly using nrfjprog:&lt;/p&gt;
&lt;p&gt;nrfjprog --program 0x10001080 --val 0xCAFEFOOD&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To fetch the values of the UICR in your application, you can use:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t uicr_cust_00 = NRF_UICR-&amp;gt;CUSTOMER[0];&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am not aware of any, but I would assume that there exists some &amp;quot;intel hex file generator&amp;quot;, either online or as python scripts if you look around. In case you manage to create .hex files with only the UICR-&amp;gt;CUSTOMER[n] values that you want, you can use:&lt;/p&gt;
&lt;p&gt;mergehex -m file1.hex file2.hex -o merged.hex&lt;/p&gt;
&lt;p&gt;to combine file1.hex and file2.hex into merged.hex, as long as they are not overlapping. The mergehex tool is part of the nrfutil tool.&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><item><title>RE: Production config in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/471048?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 14:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af9abd7-1c4e-4bb6-8a55-0ad0b04b69fe</guid><dc:creator>Alexey_B</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like to store data like: channel mask, hardware version, serial number, modification number. This information can be fitted in install codes easily. Rougly I need about ~40 bytes.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Production config in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/470011?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 12:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a0affd-cb0d-444d-988e-a2571c85b5d7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What sort of data do you want to store? Is it only a serial number, or is it more? And does this data ever change, or will it remain the same for the lifetime of the product?&lt;/p&gt;
&lt;p&gt;And finally, how much data do you intend to store? (number of bytes)&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>