<?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>nrf52 + BMI160 on I2c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56268/nrf52-bmi160-on-i2c</link><description>Hi, 
 I have a peculiar problem problem with BMI160 and nrf52. BMI160 is connected to nrf52 via pins 12 and 13. I am using peripheral/twi_sensor example. After configuring it via I2c I am able to read the chip ID of 0x1d , but the chip does not go to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 03:20:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56268/nrf52-bmi160-on-i2c" /><item><title>RE: nrf52 + BMI160 on I2c</title><link>https://devzone.nordicsemi.com/thread/228453?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 03:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e4dedea-0ca3-48fd-acd4-fc06c083fd9e</guid><dc:creator>parvathi</dc:creator><description>&lt;p&gt;Jorgen, Thank&amp;nbsp; you for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I could resolve this issue. There was a bug in the code &amp;quot;&lt;span&gt; &lt;/span&gt;rslt = nrf_drv_twi_tx(&amp;amp;m_twi, dev_id, reg_data, len + 1, false);&amp;quot; It should be &amp;quot;data&amp;quot; here and not &amp;quot;reg_data&amp;quot;. Thankyou for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 + BMI160 on I2c</title><link>https://devzone.nordicsemi.com/thread/227978?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 17:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f0a61a-882f-4d23-9728-36b6cebea7f0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you post the definitions of&amp;nbsp;bmi160_set_power_mode() and&amp;nbsp;bmi160_get_regs()?&lt;/p&gt;
&lt;p&gt;Can you provide a logic trace of the TWI-bus communication between the nRF and the sensor?&lt;/p&gt;
&lt;p&gt;I see that in Acc_i2c_Read(), you set the no_stop parameter to false, have you checked that this is correct according to the communication protocol of the sensor, described in the datasheet? Typically, this kind of sensors does not expect a stop between writing the control byte and reading the response, rather a repeated start condition.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>