<?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>nrfx_twim_init   0bad0005</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78049/nrfx_twim_init-0bad0005</link><description>Hi all, 
 I want to use TWIM1 on NRF5340, and I initialize it as follows: 
 
 But the return value of err is 0x0bad0005, 
 I guess may be TWIM1 is occupied by zephyr, because in zephyr.dts: 
 
 So how to disable i2c1 in zephry? Or maybe there is another</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jul 2021 15:21:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78049/nrfx_twim_init-0bad0005" /><item><title>RE: nrfx_twim_init   0bad0005</title><link>https://devzone.nordicsemi.com/thread/322707?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 15:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677a11a4-bb98-4d07-814c-a40652228980</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should be able to disable Zephyr&amp;#39;s I2C driver by setting the status field in the dts node to &amp;quot;disabled&amp;quot;.&lt;/p&gt;
&lt;p&gt;Or, you can disable the Zephyr&amp;#39;s I2C driver completely by setting CONFIG_I2C=n in your prj.conf file.&lt;/p&gt;
&lt;p&gt;For more information on how to use the nrfx drivers in NCS, I recommend you look at Zephyr&amp;#39;s nrfx sample in zephyr/samples/board/nrfx.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>