<?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>SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85193/softdevice-invalid-memory-access-and-nrf_fault_id_app_memacc</link><description>Hi, 
 When I download the example of &amp;quot;ble_app_uart&amp;quot;(SDK17.0.2 S132) in nRF52832,mty board is working as normal. But when I add RNG in main, the RTT Viewer just logging SOFTDEVICE: INVALID MEMORY ACCESS. 
 Here is my main code:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 13:44:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85193/softdevice-invalid-memory-access-and-nrf_fault_id_app_memacc" /><item><title>RE: SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/thread/355575?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 13:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b26fd6ea-99b8-4fff-8c78-40a490982824</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The Softdevice offers limited options when using the RNG peripheral with SD enabled. See the functions that start with &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_7_2_39#gaad12d1ebe6550185897326166e3d4591"&gt;sd_rand&lt;/a&gt;..&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/thread/355479?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 10:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45826b4-a690-461f-bca0-1946a5ac5e55</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Thanks！&lt;/p&gt;
&lt;p&gt;I have found the sd_temp_get(int32_t * p_temp)&amp;nbsp;in nrf_soc.h file, so I need to use like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int32_t random_value;
		
sd_temp_get(&amp;amp;random_value);

random_value = random_value*0.24;

NRF_LOG_INFO(&amp;quot;Temp: %d&amp;quot;,random_value);&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I cant find the API to get RNG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/thread/355445?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 08:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cab5630-58c2-439f-9831-7d58d8245dc8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;It&amp;#39;s pretty straightforward, just call the function and it will return with the computed value. For example, if you want to get know the temperature, then you call&amp;nbsp;&lt;span&gt;sd_temp_get(), and it will return with a&amp;nbsp;uint32_t&amp;nbsp;representing the die temperature in 0.25 Celsius. Something like this:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t temp;

temp = sd_temp_get();

temp = temp * 0.25;

NRF_LOG_INFO(&amp;quot;Temperature of the Die is: %d&amp;quot;,temp);
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/thread/355418?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 05:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c1167a-3c6f-440d-90ee-1b04087290d5</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;I have used normally with S112 on nRF52810. But RNG and TEMP is &amp;quot;&lt;span&gt;Restricted&lt;/span&gt;&amp;quot; in S112 .&amp;nbsp;I guess if I used like that will occur an u&lt;span&gt;npredictable&amp;nbsp;&lt;/span&gt;error, right?&lt;/p&gt;
&lt;p&gt;BTW, could you please show an example about how to use SD API of RNG or TEMP?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: INVALID MEMORY ACCESS and NRF_FAULT_ID_APP_MEMACC</title><link>https://devzone.nordicsemi.com/thread/355217?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 10:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f681b3-6926-4183-9159-3519883c02b7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/index.html?cp=4_7_3_1"&gt;Softdevice API&lt;/a&gt; when accessing the RNG peripheral when the Softdevice is enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See more about what resources the Softdevice use &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/sd_resource_reqs/hw_block_interrupt_vector.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>