<?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>NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68395/nrf9160-sdk-1-4-crash-in-random-number-generation</link><description>Hi, 
 
 I am trying to update from SDK 1.3 to 1.4 and struggling with crashes. COAP uses random number generator to generate new tokens to the header. First time when this happens it goes fine, but second time(when making registration update in LWM2M</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2020 14:06:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68395/nrf9160-sdk-1-4-crash-in-random-number-generation" /><item><title>RE: NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/thread/280922?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 14:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a410f88d-e51e-4b2b-ae21-55e999bc9203</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See this&amp;nbsp;&lt;a title="https://github.com/nrfconnect/sdk-nrf/commit/2291ddb833869ba15f2705da7e6c13851440ad68" href="https://github.com/nrfconnect/sdk-nrf/commit/2291ddb833869ba15f2705da7e6c13851440ad68" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/commit/2291ddb833869ba15f2705da7e6c13851440ad68&lt;/a&gt;&amp;nbsp;on how to increases SPM stack size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/thread/280894?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 12:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d50e41-ec6e-487c-825a-6f67b76aed41</guid><dc:creator>fastfox</dc:creator><description>&lt;p&gt;I am sorry, I don&amp;#39;t understand your hint. So how do you increase the SPM stack size?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/thread/280886?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 12:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa3f8a2-0f1c-4054-9dd6-fc95afbe33f8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;yes, and this&amp;nbsp;&lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/master/drivers/entropy/entropy_cc310.c" href="https://github.com/nrfconnect/sdk-nrf/blob/master/drivers/entropy/entropy_cc310.c" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/drivers/entropy/entropy_cc310.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/thread/280533?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 09:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc33126-8845-449a-b8a7-f3cb60a4f9d8</guid><dc:creator>fastfox</dc:creator><description>&lt;p&gt;If I just could figure out how to exactly do that... Increasing the SPM stack that is. They look pretty identical with master, but I am probably looking at the wrong place. I should be looking at the stuff in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/subsys/spm"&gt;https://github.com/nrfconnect/sdk-nrf/tree/master/subsys/spm&lt;/a&gt;&amp;nbsp;right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SDK 1.4 crash in random number generation</title><link>https://devzone.nordicsemi.com/thread/280335?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 12:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0dedd1-e77f-497e-b34b-d942c422f597</guid><dc:creator>fastfox</dc:creator><description>&lt;p&gt;I asked about the workaround in github&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2997"&gt;https://github.com/nrfconnect/sdk-nrf/pull/2997&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;unfortunately SPM entropy issue is still being investigated internally.
There were some fixes in 1.4. but apparently, they weren&amp;#39;t enough.
It is suspected it might be a stack overflow in SPM, 
increasing the stack prevents the crash. The SPM stack is already increased on the master.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;ll try the stack size change and see what happens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>