<?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>Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72617/unable-to-reboot-with-tf-m</link><description>Hi, 
 when I build a firmware with TF-M enabled the device gets stuck after a ca ll to sys_reboot(...) no matter if I use the shell or call the function somewhere else in my code. 
 
 Regards 
 Caspar</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 13:14:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72617/unable-to-reboot-with-tf-m" /><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/300142?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc50226c-a5d5-47d8-a220-366afe707050</guid><dc:creator>caspar.friedrich</dc:creator><description>&lt;p&gt;Oh, wow... Didn&amp;#39;t see that. Thanks. That worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/300132?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd86d9b-d9d0-4d1a-ab73-55c14985ca72</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Caspar,&amp;nbsp;&lt;br /&gt;The non-secure application is by default not allowed to reset. That is why, when using TF-M, you need to use the TF-M API to reset the device. I tested with&amp;nbsp;&lt;em&gt;tfm_platform_system_reset()&lt;/em&gt; from &lt;em&gt;tfm_platform_api.h&lt;/em&gt; and that worked as intended.&lt;br /&gt;&lt;br /&gt;In future release the &lt;em&gt;sys_reboot()&lt;/em&gt; will include TF-M reset function.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/300016?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 08:23:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a081db9-cd91-4faf-8bf6-977d4c8b8568</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve added the same to tfm_hello_world and seeing the same. Will talk to our developers and get back to you within tomorrow.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/299452?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 11:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd1c6d1-3b50-43e1-80dc-3d246d00e6a5</guid><dc:creator>caspar.friedrich</dc:creator><description>&lt;p&gt;Just did. added the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/samples/tfm/tfm_hello_world/src/main.c b/samples/tfm/tfm_hello_world/src/main.c
index 4ca26a9f..804d2339 100644
--- a/samples/tfm/tfm_hello_world/src/main.c
+++ b/samples/tfm/tfm_hello_world/src/main.c
@@ -11,6 +11,8 @@
 #include &amp;lt;tfm_ns_interface.h&amp;gt;
 #include &amp;quot;psa/crypto.h&amp;quot;

+#include &amp;lt;power/reboot.h&amp;gt;
+
 #define HELLO_PATTERN &amp;quot;Hello World! %s\n&amp;quot;

 void main(void)
@@ -47,4 +49,8 @@ void main(void)
 					i % 16 == 15 ? &amp;quot;\n&amp;quot; : &amp;quot;&amp;quot;);
 		}
 	}
+
+	printk(&amp;quot;about to reboot\n&amp;quot;);
+	k_sleep(K_SECONDS(3));
+	sys_reboot(SYS_REBOOT_COLD);
 }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;gets stuck after printing &lt;span style="font-family:courier new, courier;"&gt;about to reboot.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/299441?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 10:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceea3d58-a7c3-45c2-9c2d-d4d4f2c4fe47</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Did you try with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/tfm/tfm_hello_world/README.html"&gt;&amp;quot;TF-M Hello World&amp;quot; sample?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/299437?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 10:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c4edd69-6093-4e39-abcc-c5fb4811109e</guid><dc:creator>caspar.friedrich</dc:creator><description>&lt;p&gt;Just tried with the shell_module example. I added CONFIG_BUILD_WITH_TFM=y to prj.conf and copied nrf9160dk_nrf9160ns.overlay over to disable UART1. If I no try to &amp;quot;kernel reboot [cold|warm]&amp;quot; the device gets stuck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to reboot with TF-M</title><link>https://devzone.nordicsemi.com/thread/299121?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 19:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d2b95b6-fe53-45f2-94f1-e3ee003e06f3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Caspar, can you please provide information on what version of NCS you are using. What sample are you running? I will need some more information in order to recreate the issue.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>