<?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>nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7967/nrfjprog-code-region-0</link><description>hey, 
 so today I updated my NRF Tools... I guess i was using an old version before. 
 To test our prototypes we have a test fixture where the board is programmed at the end.
I used to use the following command with no problems:
nrfjprog -e --programs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jul 2015 09:05:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7967/nrfjprog-code-region-0" /><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28543?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 09:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de40161c-09df-490d-9d1c-db6511b15e12</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;the register must be clean, else nrfjprog will fail with error. You cannot write to a dirty register without erasing the whole chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28546?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 09:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed8ed16-b702-4baf-8794-688e2e7624c3</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Thanks. Makes sense ;)
So it doesn&amp;#39;t matter what&amp;#39;s in the register? So it&amp;#39;s only used to protect the Softdevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28547?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 07:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e10de1-46fe-4b66-a896-39ba88cb1b4d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Use memwr
nrfjprog --memwr 0x10001000 --val 0Xsomevalue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28548?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 06:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4aedfe-dd39-4ac9-8816-c1f4a2167375</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Thank you for your answer. We just found found out that our bootloader reads UICR.CLENR0 to jump to the application, so we are changing is now ;)
But is there a way to protect the softdevice with the new version of nrfjprog. I can&amp;#39;t seem to find it...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28544?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee26ef93-9378-4939-b364-37fba18bee7b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You are seeing this just after you changed nrfjprog tool and all the hex files are the same?
The latest version of softdevice hex not write to UICR.CLENR0 by default. Which means that it is user choice to protect the softdevice or not. Seems that your bootloader might be trying to read this register to jump to the application vector table. How old is your bootloader?
The softdevice and the application do not have to be split between code region 0 and 1, it should work even if nothing is protected and in that case your whole flash will be CR1.
If you cannot use latest version of bootloader and/or softdevice, then do the same thing like below for UICR.CLENR0 in your application and it should work from nrfjprog and nrfgo and your softdevice is in CR0 all the time
&lt;a href="https://devzone.nordicsemi.com/question/28264/does-nrgo-studo-program-bootloaderaddr/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28545?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 07:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09ba205-a267-4bad-866b-cc7e9f1cef1b</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Thank you for your answer. Its version 7.5.2. I dont get any warnings or errors during programming.&lt;/p&gt;
&lt;p&gt;Here is the log:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/log.log"&gt;log.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can also reproduce this with nrFgo Studio if I deactivate Softdevice Protection.
&lt;img src="https://devzone.nordicsemi.com/attachment/e97d41453c92fb7531a15c4fc304f49a" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog code region 0</title><link>https://devzone.nordicsemi.com/thread/28542?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2015 18:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8b789f-a397-4363-b5b9-edcd1ea34dd1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Which version of nrftools are you using?
Did you get any warning messages while programming your device? If there are no warnings then it should have worked (although i am not sure if the chip erase is done before programming softdevice or after. I do not have nrfjprog at my home PC to try it out)&lt;/p&gt;
&lt;p&gt;Can you please post your commond logs here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>