<?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>adding certain configurations such as i2c stops console printing on nrf5340 sdk 2.6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114962/adding-certain-configurations-such-as-i2c-stops-console-printing-on-nrf5340-sdk-2-6-1</link><description>Hello, I&amp;#39;ve been trying to start few blank projects on sdk 2.6.1 and I noticed that some configurations stop the console output including CONFIG_I2C=y. 
 I even tried the simple hello world sample, with and without the i2c configuration, and I confirmed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2024 06:34:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114962/adding-certain-configurations-such-as-i2c-stops-console-printing-on-nrf5340-sdk-2-6-1" /><item><title>RE: adding certain configurations such as i2c stops console printing on nrf5340 sdk 2.6.1</title><link>https://devzone.nordicsemi.com/thread/504275?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 06:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0c0537-7ca8-4353-85a2-2dc3e5ec7260</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]I even tried the simple hello world sample, with and without the i2c configuration[/quote]
&lt;p&gt;Not sure what you meant without I2C configuration, sounded as if the out of the box sample is not working so trying it out. Tried without I2C on a non secure build and it seems to work ok&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-components-multipleuploadfilemanager/7b6ffc78_2D00_6cef_2D00_4a1a_2D00_87cd_2D00_07afcc27bff1-6207-complete/pastedimage1727440898740v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And the Serial output also seems is ok.&lt;/p&gt;
&lt;p&gt;Adding CONFIG_I2C=y in prj.conf&amp;nbsp;needs us to initialize the device tree for I2C instance and its pinctrl properly otherwise it&amp;nbsp;build gives a hardfault in pinctrl_nrf.c-&amp;gt;pinctrl_configure_pins because you did not set the pinctrl configs for the I2C that needed to be used for this sample. Set the I2C1 instance properly that seem to be enabled (in .config&amp;nbsp;CONFIG_NRFX_TWIM=y CONFIG_NRFX_TWIM1=y are set).&lt;/p&gt;
&lt;p&gt;Seems like in non secure builds it is a bit restrictive on peripheral access which is a good thing as trying to use I2C without properly setting it in device tree seems like a mistake.&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><item><title>RE: adding certain configurations such as i2c stops console printing on nrf5340 sdk 2.6.1</title><link>https://devzone.nordicsemi.com/thread/503661?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 05:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df5f4d5-ca74-46d6-b880-7b4e8964f6d2</guid><dc:creator>kalbani</dc:creator><description>&lt;p&gt;this seems to only happen when building with cpuapp_ns&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>