<?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>Errors writing RESETREAS after softdevice is enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31233/errors-writing-resetreas-after-softdevice-is-enabled</link><description>I get an app error SOFTDEVICE: INVALID MEMORY ACCES if I try to write/clear RESETREAS after the softdevice has been enabled. 
 
 Why is this happening? 
 
 You can reproduce it by using 
 
 nRF52840-Preview-DK board 
 ble_app_att_mtu_throughput_pca10056_s140</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Mar 2018 14:53:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31233/errors-writing-resetreas-after-softdevice-is-enabled" /><item><title>RE: Errors writing RESETREAS after softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/123322?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 14:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45a3b3ca-56c7-4f92-9f12-15781a55ec8d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My apologies for the terribly late response. I don&amp;#39;t know what happened. Your case must have fallen through the cracks when we moved to our new support portal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think I know what your problem is. The POWER peripheral in the nRF5 devices has restricted access when the softdevice is enabled. Hence, your code works if you place the code lines before&amp;nbsp;ble_stack_init(), but not if you place them after. You can check this list to see what peripherals are free to use, restricted, or blocked by the softdevice:&amp;nbsp;&lt;a title="Hardware peripherals" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_3_1_0_6_0"&gt;Hardware peripherals&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In many cases the Softdevice has its own API that you can use to access restricted peripherals even when the softdevice is enabled:&amp;nbsp;&lt;a title="nRF52 Series" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?resultof=%22%73%64%5f%70%6f%77%65%72%22%20%22%73%31%33%32%22%20"&gt;S132 SoftDevice v5.0.0: Functions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors writing RESETREAS after softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/123323?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 14:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4772a143-c9e9-4bcc-ba85-07c21d80767d</guid><dc:creator>DBT</dc:creator><description>&lt;p&gt;Is someone looking at this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>