<?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 UICR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14990/program-uicr</link><description>Hello,
how to program 48 bytes long .bin file to UICR (starting addres 0x10001080) using nrfjprog?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2016 01:16:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14990/program-uicr" /><item><title>RE: Program UICR</title><link>https://devzone.nordicsemi.com/thread/57205?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 01:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b13ea26-5a6b-4ace-a9fb-8a72c3e32067</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;don&amp;#39;t use nrfjprog use jlink.exe and treat it like any other .bin file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program UICR</title><link>https://devzone.nordicsemi.com/thread/57204?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 17:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d787fe3-80e0-44e6-946d-a0f14ad22715</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Not that I know of. I see two options that you might be able to use. Append the data to your hex file using the &amp;quot;mergehex&amp;quot; utility (you&amp;#39;ll need it in hex format rather than binary). Or, write a script that does the needed nrfjprog commands for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program UICR</title><link>https://devzone.nordicsemi.com/thread/57203?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 17:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61598fc0-4a9e-405d-b8be-3d15a7748e7a</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I should have mentioned that I know how to program 4 bytes at a time to UICR. I really want to know whether there is a way to program binary file of arbitrary length to UICR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Program UICR</title><link>https://devzone.nordicsemi.com/thread/57202?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 17:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82e47859-f507-4d97-8ea0-7b50e06745a6</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You can write it 4 bytes at a time by doing something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;        nrfjprog --memwr 0x10001088 --val 10981692
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which is how I put a serial number in devices during development. Keep in mind that if you are using the newer bootloader in its default configuration it may be using the first two words of the customer portion of the UICR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>