<?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>I2C problems in SDK v2.6.0 on nRF5340DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109959/i2c-problems-in-sdk-v2-6-0-on-nrf5340dk</link><description>Enabling I2C support in the project leads to the infinite rebooting of the firmware. 
 OS Windows 11, toolchain 2.6.0, SDK 2.6.0, VS code extensions, board file is nrf5340_nrf5340_cpuapp_ns. Easy way to reproduce: 
 1) Create the new application from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Apr 2024 06:01:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109959/i2c-problems-in-sdk-v2-6-0-on-nrf5340dk" /><item><title>RE: I2C problems in SDK v2.6.0 on nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/477448?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 06:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bb99424-c04a-4a1a-844f-6dec221c7988</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update and your feedback.&amp;nbsp;It looks like we&amp;nbsp;need add a note for those building for the _ns target. I will report this internally.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C problems in SDK v2.6.0 on nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/477446?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 05:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27279c79-f515-48c4-b7bb-1480729fda6a</guid><dc:creator>vladimir.k</dc:creator><description>&lt;p&gt;Thanks! Yes, now it&amp;#39;s working. It would be good to add this information to the nRF Connect SDK Fundamentals course (&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-1-6-2/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-1-6-2/&lt;/a&gt;) because it would obviously be repeated among other students (or fix it in the future releases).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C problems in SDK v2.6.0 on nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/477340?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 13:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38c0dec-f3b3-46e0-843d-2bcf7ef9fbf0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was able to reproduce this issue. It seems the problem&amp;nbsp;occurs because logging is now enabled by default in TFM with UART1, which shares a peripheral ID with TWIM1 (see &lt;a title="Peripherals with shared ID" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/peripheral_interface.html?cp=4_0_0_6_0_1#concept_shared_id"&gt;Peripherals with shared ID&lt;/a&gt;). This means that TWIM1 will be configured as a secure peripheral. A secure fault is triggered when the main app tries to initialize TWIM1.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0842.pastedimage1712324434459v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Please add the following symbols to your prj.conf to disable TFM logging and see if it fixes the problem:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_SECURE_UART&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Edit:&lt;/strong&gt;&amp;nbsp;I found this from the SDK v2.6.0 release notes:&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5732.pastedimage1712324810186v1.png" /&gt;&lt;/div&gt;
&lt;div&gt;So, I think this explains why the issue started arising after v2.6.0.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;EDIT2: The course includes this note now:&lt;/div&gt;
&lt;div&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/pastedimage1730358867987v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>