<?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>Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89928/getting-a-stack-overflow-error-when-initialising-rng-modul-in-freertos-application</link><description>Hi DevZone,&amp;#39; 
 
 I am trying to use the crypto library with CC310 backend on a FreeRTOS application using the nRF52840DK. 
 My problem seems to be that when initializing the RNG module with a call to nrf_crypto_rng_init , the first thing it does is to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jul 2022 12:00:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89928/getting-a-stack-overflow-error-when-initialising-rng-modul-in-freertos-application" /><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377611?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 12:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab565ac1-ef6b-444f-88a8-8ef0d4a76ec5</guid><dc:creator>Mads</dc:creator><description>&lt;p&gt;Alright, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377609?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 11:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d041d88-8ab9-42e3-9de3-1c51048bc043</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We definitely have not done benchmarks comparing blocking and non-blocking mode. Sorry about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377569?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 09:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b02d49f-0655-48d6-a85f-46181ba2e86e</guid><dc:creator>Mads</dc:creator><description>&lt;p&gt;Thank you Susheel.&lt;/p&gt;
&lt;p&gt;What kind of performance does the peripheral then provide in blocking mode? Is there some benchmark that can indicate how much data is feasible to encrypt depending on how fast you need it?&lt;/p&gt;
&lt;p&gt;Im sry if this is the wrong place to ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377556?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 09:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453d1301-19ff-443e-92bd-90f5ae8137cc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You are right, combined with Freertos it is not possible to use the crypto in a non blocking way in the nRF5 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377511?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 06:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1900938-b951-41ef-b3e9-149d22ef947b</guid><dc:creator>Mads</dc:creator><description>&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;Yes&amp;nbsp;that would provide a solution to the problem, but in order to avaid changing the SDK i have moved on to use the CRYPTOCELL APIs directly which seems to work.&lt;/p&gt;
&lt;p&gt;The last thing i need to understand now is if there is a way to use the APIs in a non blocking way, where the CC310 peripheral&amp;nbsp;can be set going on crypto calculations while the application does other stuff and is then notified once the peripheral is done?&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t look like it to me from reading the documentation, but i want to make sure im not mistaken.&lt;/p&gt;
&lt;p&gt;Best regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mads&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377467?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 19:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef725f72-cfbd-4b64-add8-bfec679c8753</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you checked &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/59655/lesc-and-freertos"&gt;this &lt;/a&gt;thread where this is discussed. You can comment out the nRFSDK stack check nrf_stack_info_overflowed.&lt;/p&gt;
&lt;p&gt;This will only disable nRF SDK stack overflow check but the FreeRTOS stack overflow check still works so your application can still use freertos stack checking mechanism if necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/377330?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 06:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77983402-c98f-4419-b0de-46037f42a692</guid><dc:creator>Mads</dc:creator><description>&lt;p&gt;Update on my progress.&lt;/p&gt;
&lt;p&gt;I have managed to implement synchronous encryption with the CRYPTOCELL AES APIs with the no-interrups version of the library.&lt;/p&gt;
&lt;p&gt;Followup question:&lt;/p&gt;
&lt;p&gt;Could it be possible to set up with the interrupt version? Ho&lt;span style="font-family:inherit;"&gt;w do you manage the library then? C&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;an you register a call back function or something like that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Mads&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/376773?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 12:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538b76d3-bc27-45b1-af8a-7ffd5dee47f6</guid><dc:creator>Mads</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;The reason is that this time I&amp;#39;m working on an extension to a different existing project that is dependent on nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Thanks for the heads up. I am aware of this and am considering making the move to nRF Connect SDK in general, but for now the solution I&amp;#39;m looking for is going to be nRF5 SDK dependent for this project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Mads&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting a stack overflow error when initialising RNG modul in FreeRTOS application</title><link>https://devzone.nordicsemi.com/thread/376759?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 11:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2e11740-f2c0-4a83-b0cc-f13dd914a9bd</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Mads,&lt;/p&gt;
&lt;p&gt;We have limited resources due to summer vacation now, you may get a late reply regarding this issue.&lt;/p&gt;
&lt;p&gt;Just a reminder for your development. I saw you have been working with nRF9160 based on NCS. Is there any special reason to turn back to nRF5 SDK?&amp;nbsp;You may not realize nRF5 SDK is currently in a maintenance state now.&amp;nbsp;There is an embedded industry-leading crypto solution available here&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/crypto/rng/README.html"&gt;Crypto: RNG — nRF Connect SDK 2.0.0 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement - Blogs - Nordic Blog - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>