<?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>nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48999/nrf9160-i2c-only-sending-out-1-byte</link><description>I&amp;#39;m trying to get my nrf9160 DK to communicate with an i2c device so I setup a project to enable the i2c module and use TWIM to send i2c data. But then I run it and it only sends out 1 byte of data. Any thoughts as to what I might be doing wrong? I followed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Jul 2020 06:54:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48999/nrf9160-i2c-only-sending-out-1-byte" /><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/260683?ContentTypeID=1</link><pubDate>Sat, 18 Jul 2020 06:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b10482-5b3c-41cd-a5f9-d7db50d24e1b</guid><dc:creator>Aditya_s</dc:creator><description>&lt;p&gt;Hello stevenminnick,&lt;br /&gt;&lt;br /&gt;Do you mean to say that you got a different i2c device that served the same purpose as the previous one and it worked fine?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/200153?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 18:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af82350-b39d-4227-9141-437deea67631</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;If anyone was following along.&amp;nbsp; It was the target i2c device.&amp;nbsp; So when you send out an i2c read, you send out an device address byte and then a memory address byte.&amp;nbsp; And then clock out for a response.&amp;nbsp; Well my i2c device I was trying to connect to wasn&amp;#39;t operating properly, so when I sent out the device address byte, there was nothing listening so there was no ack to that address byte.&amp;nbsp; I got a different i2c device and hooked it up and it sent out both bytes.&amp;nbsp; I assumed it was something on the Nordic side, but it appears it was on the &amp;quot;thing the Nordic was connected to&amp;quot; side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/195697?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 14:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f3a702-d2eb-4b59-bdb8-812ffaa8443e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you run west update?&lt;/p&gt;
&lt;p&gt;In SES, if you go to Tools -&amp;gt; Options -&amp;gt; nRF Connect, is Zephyr Base pointing to the correct location?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/195360?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 12:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c8bae1-a03f-4419-99f3-5ed56eab188f</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;nrf9160_pca10090ns&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;nrfjprog --eraseall -f nrf91&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;SES&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Tried both 0.4.0 and bleeding edge, both had the same results.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/195348?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 11:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3511698-d39b-437b-af73-dc96b78991e4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you build for&amp;nbsp;&lt;span&gt;nrf9160_pca10090 OR&amp;nbsp;nrf9160_pca10090ns ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you using command-line with west tool, or SES ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try doing a nrfjprog -e , before flashing the application.&lt;/span&gt;&lt;/p&gt;
[quote userid="76103" url="~/f/nordic-q-a/48999/nrf9160-i2c-only-sending-out-1-byte/195123"]I also tried upgrading to the latest bleeding edge. [/quote]
&lt;p&gt;Master branch is not stable, I recommend staying on v0.4.0 tag until v1.0.0 is released.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/195123?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 11:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21a1d5e-8857-4810-9ddc-264b8bf8d69d</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;Sorry, I misunderstood.&amp;nbsp; I thought you were talking about a sensor tag?&amp;nbsp; (like a TI Sensor Tag, and then I assumed you were talking about the &amp;quot;thingy&amp;quot; devices from Nordic).&amp;nbsp; Not sure why I did that. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, GIT 0.4.0 tag.&amp;nbsp; I also tried upgrading to the latest bleeding edge. &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/195116?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 11:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba66c42b-a61d-4763-b648-3798c4205acf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Is that your local branch of the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf"&gt;nrf repo&lt;/a&gt;? The latest stable release is v0.4.0, but note that v1.0.0 will be released in the near future.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="135" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1561635572802v1.png" width="192" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194967?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 22:04:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42106593-9977-41dc-97c2-cd2561239cc0</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;Maybe check that the I2C device address you are using doesn&amp;#39;t have the Write/Read bit included.&amp;nbsp; I lost some time trying to figure out why the I2C device wasn&amp;#39;t acking because the W/R bit is set by the peripheral and shouldn&amp;#39;t be included in the device address parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194945?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 17:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3221eafb-ebbc-4a78-8520-ac36182675f8</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;nrf9160, so that&amp;#39;s probably the issue.&amp;nbsp; It&amp;#39;s not a tag.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194944?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 17:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534040bf-f1f3-4f99-a089-33a626c696c2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What tag are you on ? Is this v0.4.0 tag ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194921?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 14:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4599ea6e-219a-4108-8623-2c092efc285b</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;When I open your project you linked here, and just compile it, it fails because it can&amp;#39;t find math.h, but it seems like you don&amp;#39;t use it, so I commented it out.&amp;nbsp; But then when I run it, it also fails.&lt;/p&gt;
&lt;p&gt;Exception occurred in Secure State&lt;br /&gt;***** HARD FAULT *****&lt;br /&gt;&amp;nbsp; Fault escalation (see below)&lt;br /&gt;***** BUS FAULT *****&lt;br /&gt;&amp;nbsp; Precise data bus error&lt;br /&gt;&amp;nbsp; BFAR Address: 0x50008120&lt;br /&gt;***** Hardware exception *****&lt;br /&gt;Current thread ID = 0x20020184&lt;br /&gt;Faulting instruction address = 0x0&lt;br /&gt;Fatal fault in ISR! Spinning...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194912?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 13:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a177d8a-32a7-410d-8de9-9ca8ebf7af7d</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;prj.conf&lt;/p&gt;
&lt;p&gt;CONFIG_I2C=y&lt;br /&gt;CONFIG_I2C_NRFX=y&lt;br /&gt;CONFIG_I2C_3=y&lt;br /&gt;CONFIG_I2C_3_NRF_TWIM=y&lt;/p&gt;
&lt;p&gt;overlay&lt;/p&gt;
&lt;div&gt;&amp;amp;i2c3 {&lt;br /&gt;&amp;nbsp;status = &amp;quot;ok&amp;quot;;&lt;br /&gt;&amp;nbsp;sda-pin = &amp;lt; 30 &amp;gt;;&lt;br /&gt;&amp;nbsp;scl-pin = &amp;lt; 31 &amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;&amp;nbsp; &lt;br /&gt;};&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194910?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 13:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5601311a-de35-412e-8fcc-e96b88acc3a6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have this in prj.conf ?&lt;/p&gt;
&lt;p&gt;CONFIG_I2C=y&lt;br /&gt;CONFIG_I2C_NRFX=y&lt;br /&gt;CONFIG_I2C_3=y&lt;br /&gt;CONFIG_I2C_3_NRF_TWIM=y&lt;/p&gt;
&lt;p&gt;and this in &lt;span&gt;nrf9160_pca10090.overlay /&amp;nbsp; nrf9160_pca10090ns.overlay&amp;nbsp;&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;&amp;amp;i2c3 {&lt;br /&gt; status = &amp;quot;ok&amp;quot;;&lt;br /&gt; sda-pin = &amp;lt; 12 &amp;gt;;&lt;br /&gt; scl-pin = &amp;lt; 11 &amp;gt;;&lt;br /&gt; clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;; &lt;br /&gt;};&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194903?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 13:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f1d9b4-4828-41ba-968b-b8215ef0fa9d</guid><dc:creator>stevenminnick</dc:creator><description>&lt;p&gt;When I try using I2C_3 it won&amp;#39;t build.&amp;nbsp; I&amp;#39;m investigating. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/i2c3_5F00_nordic_5F00_build_5F00_fail.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 I2C only sending out 1 byte</title><link>https://devzone.nordicsemi.com/thread/194860?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 11:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd23317-afd3-4a85-97c8-73f0daf284f8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try with I2C_3 instead? I have a I2C scanner sample for nRF9160 you might find useful here:&amp;nbsp;&lt;a href="https://github.com/sigurdnev/fw-nrfconnect-nrf/blob/master/samples/nrf9160/i2c_scanner/src/main.c"&gt;https://github.com/sigurdnev/fw-nrfconnect-nrf/blob/master/samples/nrf9160/i2c_scanner/src/main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>