<?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>S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13145/s130-v2-soft-device-size-in-future-and-protection</link><description>Hi 
 Question 
 What is the risk/chance that future revisions (&amp;gt;2.0.0) of S130 will be incompatible with the setting UICR.CLENR0 = 0x1C000 ? 
 Background 
 Today we would like to use S130 V2.0.0 and set UICR.CLENR0 to 0x1C0000. We will then only be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Apr 2016 11:28:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13145/s130-v2-soft-device-size-in-future-and-protection" /><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50111?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 11:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa04165-3fbc-446a-8ab6-71fb5ec8e0df</guid><dc:creator>Jon (jono)</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Q1: thanks.&lt;/p&gt;
&lt;p&gt;Q2: Yesterday i got hard fault with UICR.CLENR0==0xFFFFFFFF (set ram prot to 8 in _SD_INIT), i then changed UICR.CLENR0 to 0x40000 and worked around some issues with that. Today I added clearing of ram and changed back to 0xFFFFFFFF after seeing a compare to that value when stepping in mbr or softdevice. Now the verry same code (but with ram cler) that didn&amp;#39;t work yesterday works. (I also write to NRF_MPU.RLENR0 in the keil load script to place flash alg in protected region, after loading I reset NRF_MPU.RLENR0 to 0 in the same script. Since I dont have the source to MBR and init of SD, the understanding when stepping is quite sparce... but theres somthing that I miss out here..., now i cannot reproduce the hard fault any more...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50110?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 11:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b08b0f65-0600-4e0f-84f7-b28f57c982d0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, if you intend to update the firmware on the chip then you should not set the &lt;code&gt;CLENR0&lt;/code&gt; register.
Ok, so if you do a full erase of the chip and re-flash the firmware, the device does not enter the hardfault handler with the &lt;code&gt;CLENR0&lt;/code&gt; set to &lt;code&gt;0xFFFFFFFF&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50106?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 10:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:151b1e07-24d9-4c11-a809-5910d9266d29</guid><dc:creator>Jon (jono)</dc:creator><description>&lt;p&gt;&amp;#39;UICR.CLENR0 = 0x00040000&amp;#39; seems not to work, unclear why, end up in hard fault. Would have been nice it could work, since the chip could then have protected the ram at least...&lt;/p&gt;
&lt;p&gt;Though, now calling &amp;#39;SD_MBR_COMMAND_INIT_SD&amp;#39; with  &amp;#39;UICR.CLENR0 = 0xFFFFFFFF&amp;#39; does not set NRF_MPU.RLENR0 any more?? This occured first time after clearing low ram 0x20000004..0x20002800. Wether this is the true reason or not I don&amp;#39;t know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50109?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 13:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc1fd73-4836-4608-9f85-3afaf98e8306</guid><dc:creator>Jon (jono)</dc:creator><description>&lt;p&gt;Hi, and thanks!&lt;/p&gt;
&lt;p&gt;2 followups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you recommend us to leave protection off? (main question)&lt;/li&gt;
&lt;li&gt;I have confirmed this &lt;strong&gt;not&lt;/strong&gt; working when run as above from boot loader. Crashes in S130 V2.0.0 @0x00019C96 on store to protected RAM (writes to addr 4, ram-protection set to 8 -&amp;gt; mpu fault (ram protection set by MBR on SD INIT))&lt;/li&gt;
&lt;li&gt;Now 0xFFFFFFFF works, reason why is unclear. Could be related to clearing low ram 0x20000004..0x20002800.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50108?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 13:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0815bc98-814d-47ce-a470-8d9f670e8971</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Setting &lt;code&gt;UICR.CLENR0&lt;/code&gt;  to 0x1C0000 will prevent you from updating the SoftDevice in the future. If the SoftDevice size increases, then parts of the SoftDevice will be located above the address set in CLENR0, resulting in that part not being able to access the other parts of the SoftDevice. The same situation will occur with the application if the SoftDevice size decreases, parts of the application will be protected against itself.&lt;/p&gt;
&lt;p&gt;There should not be any issues with leaving the &lt;code&gt;CLENR0&lt;/code&gt; unset, i.e. &lt;code&gt;0xFFFFFFFF&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 v2 Soft device size in future and protection</title><link>https://devzone.nordicsemi.com/thread/50107?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 13:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c115d9-f75c-409a-b2d1-d50ec3731ec9</guid><dc:creator>Jon (jono)</dc:creator><description>&lt;p&gt;Might be an option to disable protection by running with &amp;#39;UICR.CLENR0 = 0x00040000&amp;#39; also? Not tried.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>