<?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>Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95209/debugging-tf-m-application-rot-service-with-nrf5340-dk</link><description>Hello, 
 We are developing a library which is intended to use the trustzone feature (TF-M based) available with nrf5340 DK. We want to debug the custom secure service API running in TF-M application RoT service. 
 We used the sample tfm_secure_peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2023 08:13:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95209/debugging-tf-m-application-rot-service-with-nrf5340-dk" /><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/413719?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 08:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4c5e23-a754-45e4-9612-1055a0e4ec67</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Kirti.&lt;/p&gt;
&lt;p&gt;That is possible in nRF Connect SDK v2.3.0 and onwards, using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_TFM_SECURE_UART_SHARE_INSTANCE"&gt;CONFIG_TFM_SECURE_UART_SHARE_INSTANCE&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/413428?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 07:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5720dc5-28bf-43b2-8ef1-4e28142e4631</guid><dc:creator>skirti</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Sigurd,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With the above mentioned two changes i.e. &lt;br /&gt;1. Add the changes to boards/nrf5340dk_nrf5340_cpuapp_ns &lt;br /&gt;&lt;/span&gt;&lt;span&gt;2. Adding configs CONFIG_TFM_UART1_TXD_PIN=20 &amp;amp;&amp;nbsp;CONFIG_TFM_UART1_RXD_PIN.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With these changes able to get the logs from secure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would like to know is there any way to get both secure and nonsecure logs at once?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/406154?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 06:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b01d48e-5a0f-4789-9fcf-b3aece552579</guid><dc:creator>ske</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We are getting the SPE prints with this configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/405800?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 09:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ea55c8-49f2-4b4f-9c04-7c12b656c41a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found that you need another configuration as well:&lt;/p&gt;
&lt;p&gt;You need to disable uart1 in the devicetree when using it from TF-M.&lt;/p&gt;
&lt;p&gt;Also, you need to disable or change the pins of uart0 in the devicetree, so that the uarts does not compete for the pins.&lt;/p&gt;
&lt;p&gt;Add the following to boards/nrf5340dk_nrf5340_cpuapp_ns:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	/* Disabled in non-secure image. */
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;uart1 {
	/* Disabled in non-secure image. */
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/405475?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 12:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a16c6240-3337-4ac6-86bf-df70e28066dc</guid><dc:creator>ske</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response.&lt;/p&gt;
&lt;p&gt;From tfm_spp_main() entry point API, we also getting the prints which is added before psa_wait() call. But if we add any prints after psa_wait() call, we didn&amp;#39;t get those prints. Please refer this snippet code and SPE log.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:267px;max-width:447px;" height="267" src="https://devzone.nordicsemi.com/resized-image/__size/894x534/__key/communityserver-discussions-components-files/4/tfm_5F00_spp_5F00_main.png" width="447" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M application RoT service with nRF5340-DK</title><link>https://devzone.nordicsemi.com/thread/402406?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 10:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87efcb9d-5649-4717-b43a-1050d48a14ea</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/ug_tfm.html"&gt;Running applications with Trusted Firmware-M&lt;/a&gt;.&lt;/p&gt;
[quote user=""]CONFIG_TFM_UART1_TXD_PIN=20&lt;br /&gt;CONFIG_TFM_UART1_RXD_PIN=22[/quote]
&lt;p&gt;I added these configurations to the secure peripheral sample.&lt;br /&gt;And now I can see custom prints in secure_peripheral_partition.c:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672222516773v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>