<?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 twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64482/nrfx-twis-drivers-on-nrf9160-zephyr</link><description>Hello, 
 I want to use I2C slave on nrf9160, but there is no I2C slave driver implementation. 
 So I read that instead of this, I can use nrfx twis drivers on nrf9160. 
 I followed this thread https://github.com/zephyrproject-rtos/zephyr/issues/21445</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 07:54:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64482/nrfx-twis-drivers-on-nrf9160-zephyr" /><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/269997?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 07:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4daca7de-589c-452d-994b-ab4903cdc818</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Jagruti:&amp;nbsp;&lt;/strong&gt;I&amp;#39;m sorry you experienced this notification bonanza yesterday! We&amp;#39;re looking into this right now and are working on finding out what exactly has happened here. A suggestion is to disable e-mail notifications from DevZone. This can be done by going to settings in the top right corner and uncheck the &amp;quot;Enable email contact&amp;quot; checkbox.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SE:&amp;nbsp;&lt;/strong&gt;Please create a new ticket&amp;nbsp;describing your issue in detail. Feel free to link to this one if you find it relevant.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/269940?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 18:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a643a472-715c-4b36-8dfd-af937b44bac8</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please create a new thread. I am receiving notification of this reply every second in my mail box. I received thousands of mail in last 10 minutes. I don&amp;#39;t know how to stop it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/269937?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 18:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac611ef-c659-4015-8877-a239998502cb</guid><dc:creator>Smart.Enrg</dc:creator><description>&lt;p&gt;Thanks Simon,&lt;/p&gt;
&lt;p&gt;Specifically what I&amp;#39;m trying to do - add TWIS to Asset Tracker project.&lt;br /&gt;When I look at .prj and overlay files for Thingy.91 (in Asset Tracker) -&amp;nbsp;thinking since it uses I2C sensor &lt;br /&gt;(though operating as TWIM), I&amp;#39;ll at least get&amp;nbsp;to see how i2c is configured there.&lt;br /&gt;But other than CONFIG_*_USE_EXTERNAL=y (vs. &lt;span&gt;CONFIG_ACCEL_USE_SIM=y&lt;/span&gt;) I do Not see any&amp;nbsp;&lt;br /&gt;explicit i2c config (mode, pins etc.) in .prj or overlay files.&lt;br /&gt;So, my 1st question is - &lt;br /&gt;a) where am I supposed to make i2c (TWIS in my case)? In order to use nrfx drivers. An example will&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; be great.&lt;br /&gt;b) what is the correct/ recommended way of creating/ modifying project configuration - editing overlay, &lt;br /&gt;&amp;nbsp; &amp;nbsp; .prj files directly, or from within SES &amp;gt; Configure nRF Connect SDK Project &amp;gt; menuconfig option?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;SE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/269295?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 07:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7561240b-c853-4a1f-bef7-7ca6d9a50446</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would suggest using the nrfx drivers, as these are the drivers we are most familiar with. It should be possible to configure any sample project to use TWI(S) as far as I know. Do you have any specific questions on how exactly to do so?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/269226?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 19:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49fecbc7-3424-4481-ab3f-e096b51fb905</guid><dc:creator>Smart.Enrg</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/64482/nrfx-twis-drivers-on-nrf9160-zephyr/265874"]nRF9160 supports u&lt;span&gt;p to 4x I2C compatible two-wire master/slave with EasyDMA&lt;/span&gt;[/quote]
&lt;p&gt;Thanks Simon,&lt;br /&gt;&lt;br /&gt;Just to confirm - per quote above you are recommending using one of the unused serial slots as TWIS,&amp;nbsp; using nrfx, Not Zephyr driver, right?&lt;/p&gt;
&lt;p&gt;Browsing through various posts here on devzone and zephyr communities, what I understand about i2c-slave use on nRF9160:&amp;nbsp;&lt;br /&gt;a) Until ~3 weeks back Zephyr did Not have support for TWIS/ i2c slave. Though now there&amp;#39;s &amp;quot;experimental&amp;quot; i2c slave support added to Zephyr - &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/27675"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/27675&lt;/a&gt;&amp;nbsp;&lt;br /&gt;But nRF (including 9160) is explicitly excluded - because how EasyDMA is integral part of i2c operation - &lt;br /&gt;I think Zephyr driver needs byte-by-byte access to i2c registers.&lt;/p&gt;
&lt;p&gt;b) Per&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/include/drivers/i2c.h#L61"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/include/drivers/i2c.h#L61&lt;/a&gt;&amp;nbsp;- it reads &amp;quot;&lt;em&gt;The following #defines &lt;span style="text-decoration:underline;"&gt;are used to configure&lt;/span&gt; the &lt;strong&gt;I2C slave device&lt;/strong&gt;&lt;/em&gt;&amp;quot; - does that mean there&amp;#39;s built in support for i2c_slave in current Zephyr for nRF9160? If not, what does this i2c slave device configuration is referring to/ how is it used?&lt;br /&gt;&lt;br /&gt;Will appreciate if you could please comment on what&amp;#39;s my best bet for realizing i2c slave on nRF9160? Also is there any example code showing i2c slave in action (nrfx perhaps)? meant for nRF9160 or nRF52.&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;SE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/265874?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 06:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac1f472-ed48-4f1c-b7ac-2316334bb320</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The nRF9160 should be able to be interfaced by an external I2C master as the nRF9160 supports u&lt;span&gt;p to 4x I2C compatible two-wire master/slave with EasyDMA, and&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker/README.html"&gt; the asset tracker application&lt;/a&gt; does not use all of these instances by default.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/265866?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 02:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17dfbac5-6bcd-4591-91e9-659f4225bc9a</guid><dc:creator>Smart.Enrg</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;&lt;br /&gt;I have same use case as Jagruti - need to interface nRF9160 (running Asset Tracker app) &lt;br /&gt;interfaced from/ managed by an external I2C master.&amp;nbsp;So the two questions I have are:&amp;nbsp;&lt;br /&gt;1) Will Asset tracker application allow TWIS operation with getting into conflict with other&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; system resources that Asset tracker allocate by default?&lt;br /&gt;2) Will 9160 respond to asynchronous queries from external/ other master in multi-master &lt;br /&gt;&amp;nbsp; &amp;nbsp; environment?&amp;nbsp; If so, then I don&amp;#39;t necessarily need TWIS on 9160/ Asset tracker side.&lt;br /&gt;&lt;br /&gt;Please advise. Thanks.&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;SE&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/264366?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 07:33:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ca52621-69fd-4a89-b24f-2f77d07823d2</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No I am using separate instances for SPI and I2C (SPI3 and I2C2).&lt;/p&gt;
&lt;p&gt;Now I have decided to use I2C master, so I can use zephyr drivers for that.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/263107?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 06:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01bcb23a-82fd-466e-a6a9-b34fbc80a422</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad you were able to solve the initial issue. What kind of error are you seeing now then? Could it be that the I2C 0 instance is already used by the SPI or some other part of your application? The SPI and TWI can not use the same instance, as they share certain resources and therefore can&amp;nbsp;&lt;strong&gt;not&amp;nbsp;&lt;/strong&gt;be used at the same time.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx twis drivers on nrf9160 (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/263046?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 14:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80dd1920-35a4-4090-b2f7-040c6a451376</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was able to solve the above problem. I updated ncs tag to v1.2.0 and there was no compilation error.&lt;/p&gt;
&lt;p&gt;But still TWIS is not working as expected.&lt;/p&gt;
&lt;p&gt;nRF9160DK TWIS is interfaced to SAM&amp;#39;s TWIM. At the same, SAM is interfaced to the sensor. SAM uses same TWIM instance but the different addresses for nRF9160DK and sensor.&lt;/p&gt;
&lt;p&gt;When I connect SAM and nRF9160DK TWI pins, the communication between SAM and sensor is also stopped.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand what is the problem.&lt;/p&gt;
&lt;p&gt;Because same setup works with nRF52840DK. When I use nRF52840DK as TWIS instead of nRF9160DK, everything works properly.&lt;/p&gt;
&lt;p&gt;I just want the same functionality on nRF9160DK, but nothing works.&lt;/p&gt;
&lt;p&gt;How should I proceed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>