<?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>Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73117/random-zephyr-hangs-due-to-rng-entropy</link><description>On nRF52840, after power up, I continue to randomly get hangs. I am having trouble figuring it out, but it seems every time I encounter the issue, it is related to RNG. If I attach gdb, it is typically stuck in &amp;#39;CC_PalWaitInterruptRND&amp;#39;. I thought I could</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jan 2026 09:10:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73117/random-zephyr-hangs-due-to-rng-entropy" /><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/558668?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 09:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d7763c-a61d-46d4-8dc8-ea75261f3963</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Thanks for confirming.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/558660?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 05:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:132315d8-d1ab-4881-adf6-77e5b0de8f53</guid><dc:creator>Veijo Boman</dc:creator><description>&lt;p&gt;Apparently bug is still valid as my problem got fixed by workaround presented above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/558280?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 13:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6ba6e1-d955-4ae1-b8cf-5e320e6dc1c9</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi, Can you create a new ticket for this and link to this ticket in the new case?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/558261?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 12:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a459a4cc-2cfe-40c5-bb41-cfc68abe7f71</guid><dc:creator>Veijo Boman</dc:creator><description>&lt;p&gt;I wonder if this bug is still valid? I&amp;#39;m running nRF52840 devkit with Zephry 2.9.1 application which sends BLE mesh messages as much&amp;nbsp;as possible. Usually within an hour it crashes:&lt;br /&gt;&lt;br /&gt;00&amp;gt; [01:06:12.418,426] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;00&amp;gt; [01:06:12.418,426] &amp;lt;err&amp;gt; os: Stacking error (context area might be not valid)&lt;br /&gt;00&amp;gt; [01:06:12.418,426] &amp;lt;err&amp;gt; os: r0/a1: 0x00000000 r1/a2: 0x00000000 r2/a3: 0x00000000&lt;br /&gt;00&amp;gt; [01:06:12.418,457] &amp;lt;err&amp;gt; os: r3/a4: 0x00000000 r12/ip: 0x2000eda8 r14/lr: 0x2000ed80&lt;br /&gt;00&amp;gt; [01:06:12.418,457] &amp;lt;err&amp;gt; os: xpsr: 0x41000200&lt;br /&gt;00&amp;gt; [01:06:12.418,487] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0004bb66&lt;br /&gt;00&amp;gt; [01:06:12.418,518] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;00&amp;gt; [01:06:12.418,548] &amp;lt;err&amp;gt; os: Current thread: 0x200043b8 (unknown)&lt;br /&gt;00&amp;gt; [01:06:12.686,706] &amp;lt;err&amp;gt; os: Halting system&lt;br /&gt;&lt;br /&gt;Checked address&amp;nbsp;&lt;span&gt;0x0004bb66 from map-file:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;.text.CC_PalWaitInterruptRND&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0004bb60&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x2c&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/opt/ncs/v2.9.1/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/no-interrupts/libnrf_cc310_platform_0.9.19.a&lt;/span&gt;&lt;span&gt;(cc_pal_interrupt_ctrl.c.obj)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0004bb60&lt;/span&gt;&lt;span&gt; CC_PalWaitInterruptRND&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;.text.CC_PalWaitInterrupt&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0004bb8c&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x18&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/opt/ncs/v2.9.1/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/no-interrupts/libnrf_cc310_platform_0.9.19.a&lt;/span&gt;&lt;span&gt;(cc_pal_interrupt_ctrl.c.obj)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0004bb8c&lt;/span&gt;&lt;span&gt; CC_PalWaitInterrupt&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/302426?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 15:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ef1dd6-3121-4fdf-a869-f61d3be778ff</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Great thanks, will update on any new regarding the issue, i.e fix.&amp;nbsp;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/302247?ContentTypeID=1</link><pubDate>Sat, 27 Mar 2021 19:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4be058-07f3-499f-a3c1-ceced4069983</guid><dc:creator>krbvroc1</dc:creator><description>&lt;p&gt;I just added an attachment to the original post. I am not sure if it reproduce the board hang, BUT...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Running the sample illustrates that calling sys_rand32_get() when the default CC310 cryptocell is used for RNG takes FOREVER. Generating 200 numbers takes over 18 seconds! There is an overlay file included, which comments out the override to the RNG. If you enable the RNG it works fine and generation time is minimal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/302087?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a8e632f-84c1-4916-ae06-f4f36d770810</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Thanks for the information, we are trying to reproduce this locally.&amp;nbsp; Could you possibly share a minimal project that still reproduces the issue you are seeing?&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/301946?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 14:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45a6a21c-7fe7-41d4-ab26-9af26dcc779b</guid><dc:creator>krbvroc1</dc:creator><description>&lt;p&gt;I am currently using 1.5 ... I also had the same problem on the latest &amp;#39;master&amp;#39; (1.5.99).&lt;/p&gt;
&lt;p&gt;A workaround I was given from a Zephyr developer was to override the DTS file, basically changing&lt;/p&gt;
&lt;p&gt;&amp;#39;zephyr,entropy = &amp;amp;cryptocell;&amp;#39;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&amp;#39;zephyr,entropy = &amp;amp;rng;&amp;#39;&lt;/p&gt;
&lt;p&gt;Disabling the CC310 definitely fixes the issue, so there is still a bug in CC310 RNG or a regression that Nordic needs to address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/301943?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 14:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5490e1ae-70ab-4579-851a-cd889d369296</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;It could be&amp;nbsp;related to the issue here :&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/issues/2898"&gt;[nrf52840] device hangs when reinitializing cc310 · Issue #2898 · openthread/openthread · GitHub&lt;/a&gt;&lt;br /&gt;What version of NCS are you on ?&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random Zephyr hangs due to RNG / Entropy</title><link>https://devzone.nordicsemi.com/thread/301725?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494e49e9-d7dc-4808-a9d9-6301e1af1609</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Looking in to this, will update you.&lt;br /&gt;&lt;br /&gt;Can you share your&amp;nbsp; prj.conf&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>