<?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>LSM6DSL problem to start via i2c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37755/lsm6dsl-problem-to-start-via-i2c</link><description>Hello! 
 I have a custom pcb with Lsm6dsl connect to nrf52832 via i2c. 
 I can write and read regs of Lsm6dsl well ( reg &amp;quot;who_am_I&amp;quot; return 0x6a as describe in datasheet ). 
 The problem appears when I try to write &amp;quot;ODR&amp;quot; (output data rate) bits in CTRL1_XL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Aug 2018 14:09:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37755/lsm6dsl-problem-to-start-via-i2c" /><item><title>RE: LSM6DSL problem to start via i2c</title><link>https://devzone.nordicsemi.com/thread/145708?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 14:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d88f94-cf0f-48dd-ad07-9541b9f48eb1</guid><dc:creator>beliyd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thanks for reply!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Today I discovered a problem. I have two different power supply net on nrf52832 and LSM6DSL (with common ground) on my custom board. After connecting to one common power supply net,&amp;nbsp; programm&amp;nbsp; code work good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL problem to start via i2c</title><link>https://devzone.nordicsemi.com/thread/145663?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 11:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3844f1a-c94e-4ecb-a4dc-ef4387fb5d1d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Do you have a logic analyzer that you can use to capture what goes on on the bus?&lt;/p&gt;
&lt;p&gt;What happens if you remove the&amp;nbsp;code reading from the who am I registers? The LSM6DSL&amp;#39;s datasheet states that you need a repeated start condition between TX and RX operations and you don&amp;#39;t have that. I&amp;#39;m not sure it if it is related though, and it is i odd that a read operation would work, but not subsequent write operations.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To use repeated start, please use:&lt;/p&gt;
&lt;p&gt;nrf_drv_twi_tx(..., ..., ..., ..., &lt;strong&gt;true&lt;/strong&gt;);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;before&lt;/p&gt;
&lt;p&gt;nrf_drv_twi_rx(...,&amp;nbsp;...,&amp;nbsp;...,&amp;nbsp;...);&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>