<?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>Using Secure Services in Non-Secure Application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83607/using-secure-services-in-non-secure-application</link><description>I keep getting a hard fault when calling spm_request_random_number() 
 
 
 I&amp;#39;m following the secure_services sample provided in the SDK, and the secure_services header file is not providing me with much insight. Any common pitfalls I could be missing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jan 2022 15:08:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83607/using-secure-services-in-non-secure-application" /><item><title>RE: Using Secure Services in Non-Secure Application</title><link>https://devzone.nordicsemi.com/thread/347634?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 15:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e60791d-7f23-43c5-859e-10cf2cb5d9bb</guid><dc:creator>esisk</dc:creator><description>&lt;p&gt;Thanks for the suggestion. My problem ended up being wrong parameters into the function header. I am generating UUIDs for some messages, and I interpreted the len param as length of the UUID in bits for some reason instead of bytes. I was just a little confused because the fault was occurring around system calls, so I my first instinct was there may be some issues with context switches from the secure to non-secure context since I&amp;#39;d seen others on here have issues with that. Anyway my mistake was dumb and I&amp;#39;ll leave this here unless someone else has a similar issue. The secure_services library should work out of the box.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Secure Services in Non-Secure Application</title><link>https://devzone.nordicsemi.com/thread/347520?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 08:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a94f40-7bba-40a5-bfc8-cf884471e015</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As a general suggestion, you can compare your project with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/samples/nrf9160/secure_services/README.html"&gt;secure services sample&lt;/a&gt; (nrf\samples\nrf9160\secure_services\). If you don&amp;#39;t spot anything obvious, the next step should be to understand where there the issue was. Please see for instance &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79796/what-happened-when-i-create-a-kernel-timer-based-on-the-32k-rtc-by-nrf-connect-sdk-on-nrf-52840-dk/330162#330162"&gt;this post&lt;/a&gt; on how to use&amp;nbsp;addr2line to see where in the code the error occurred.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>