<?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>Persistent Bug Issue with CONFIG_I2C and ECDSA Combination</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106797/persistent-bug-issue-with-config_i2c-and-ecdsa-combination</link><description>I am reaching out to report a persistent bug I&amp;#39;ve encountered in a larger project. The issue specifically arises when combining the CONFIG_I2C setting with ECDSA, in a non-secure build, resulting in the board failing to post on the nRF5340. 
 Detailed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Dec 2023 09:27:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106797/persistent-bug-issue-with-config_i2c-and-ecdsa-combination" /><item><title>RE: Persistent Bug Issue with CONFIG_I2C and ECDSA Combination</title><link>https://devzone.nordicsemi.com/thread/461231?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 09:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9cc1730-22de-4f65-bfda-0a0c9be61467</guid><dc:creator>SimonDar</dc:creator><description>&lt;p&gt;Switching to UART0 for TF-M seems to have resolved the posting issue, allowing me to continue with the larger project. Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Persistent Bug Issue with CONFIG_I2C and ECDSA Combination</title><link>https://devzone.nordicsemi.com/thread/461218?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 08:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84f60e7-5022-4140-82d7-8ee99b0f7c0a</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think the issue here is that the default I2C instance on nRF5340 DK is I2C1, which collides with TF-M&amp;#39;s use of UART1 for logging. That results in a busfault when the I2C driver tries to initialize the I2C instance on the non-secure side, as it is reserved for TF-M on the secure side.&lt;br /&gt;&lt;br /&gt;There are (at least) two options for fixing the issue:&lt;/p&gt;
&lt;p&gt;1. Let TF-M use UART0 for logging and share it with the application. To do that, set these to Kconfig options:&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_SECURE_UART_SHARE_INSTANCE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_SECURE_UART0&lt;/span&gt;&lt;span&gt;=y&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;2. Reconfigure I2C to use a different instance. In the application, create a DT overlay file called `nrf5340dk_nrf5340_cpuapp_ns.overlay` in the `boards` folder with this content:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;That&amp;#39;s the first step to get the app running. Then you will have to configure I2C for some other instance.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;Jan Tore&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>