<?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 with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82422/debugging-tf-m-with-nrf5340-dk-2-0-0</link><description>Hello, 
 I have just bought a nRF5340-DK. My board is labeled 2.0.0, and appears to use a 2nd nRF5340 as the debugger. I am trying to use TF-M with a Rust application. So far I have flashed TF-M with Zephyr. But I am having trouble then flashing my Rust</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Dec 2021 07:45:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82422/debugging-tf-m-with-nrf5340-dk-2-0-0" /><item><title>RE: Debugging TF-M with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/thread/342629?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 07:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a862aa0-3e0a-42ce-827d-b3897500463c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;We will of course update the documentation to reflect this change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/thread/342608?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 21:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72ceb4b-da6d-4d37-a1f6-5db231c59254</guid><dc:creator>sphw</dc:creator><description>&lt;p&gt;That&amp;#39;s all very helpful. It would be nice for the documentation on these devices be updated to show that the new DKs have different capabilities and pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/thread/342594?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 17:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:287de846-e5ea-42a1-a805-2a4cc918615c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry for the delayed response. I assumed it was just the pin labeling that had changed on the new board, not that the P24 header actually had fewer pins. Turns out the new board has 2 VCOM interfaces unlike our previous revisions which had 3. So that&amp;#39;s why they were removed.&lt;/p&gt;
&lt;p&gt;As a temporary fix you can change the UART pinout in the TF-M fw to the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- &lt;span&gt;RTE_USART1_TXD_PIN&lt;/span&gt;&amp;nbsp;&amp;nbsp; 20&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-&amp;nbsp;&lt;span&gt;RTE_USART1_RXD_PIN&lt;/span&gt; &lt;span&gt;&lt;/span&gt;&amp;nbsp; &lt;span&gt;22&lt;/span&gt; &lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In this file: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/084f699a52c5b1a7bc867c3fc497b9436f7da192/modules/tfm/tfm/boards/board/RTE_Device.h#L47"&gt;https://github.com/nrfconnect/sdk-nrf/blob/084f699a52c5b1a7bc867c3fc497b9436f7da192/modules/tfm/tfm/boards/board/RTE_Device.h#L47&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You may also consider back porting the following commits for more verbose logging:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/39375"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/39375&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/39737"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/39737&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Then you can enable TFM_EXCEPTION_INFO_DUMP and set TFM_SPM_LOG_LEVEL to &amp;#39;Debug&amp;#39; to get crashlogs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/thread/342151?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 15:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a788ac9-a3d4-487e-8aae-23365bc77c6f</guid><dc:creator>sphw</dc:creator><description>&lt;p&gt;I can&amp;#39;t make those connections, since my board lacks the TxD and RxD ports. &lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Photo-Dec-07_2C00_-4-53-03-AM.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging TF-M with nRF5340-DK 2.0.0</title><link>https://devzone.nordicsemi.com/thread/342108?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 14:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d34381-f0db-42c1-bbd9-e8ecb6128651</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was not aware that we had removed the silskreen labels for RxD and TxD on the latest board revision, I have to ask the board designers about this. At least they are present on my v0.11.0 boards.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5810.Capture.JPG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6470.Capture2.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But a first step to check if we can get TF-M logging to work on your board,&amp;nbsp; please make the connections as shown above and then program the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/tfm/tfm_hello_world/README.html"&gt;TF-M hello world&lt;/a&gt; hex below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TF-M Hello world sample hex ($nrfjprog --program merged.hex --chiperase -r)&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/05355.merged.hex"&gt;devzone.nordicsemi.com/.../05355.merged.hex&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Expected log output&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1638799484929v3.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Memory layout&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1638799520787v4.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>