<?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>Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22221/problem-with-multiple-twi-slave-initialization</link><description>Hi, 
 I&amp;#39;m trying to add a second slave twi device to the twi_sensor example with the LM75B temperature sensor but am having trouble. I am using the bmd-300 evaluation kit. I tried searching for similar information but I couldn&amp;#39;t find any that answers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Apr 2021 12:30:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22221/problem-with-multiple-twi-slave-initialization" /><item><title>RE: Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/thread/305848?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 12:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a18c050a-cdc7-42bf-8ffb-ccae7c9ccbdc</guid><dc:creator>dewal</dc:creator><description>&lt;p&gt;hi, can you please provide your source. I have problem to integrate multiple slave device through TWI.&lt;/p&gt;
&lt;p&gt;please reply me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/thread/87317?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 02:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff3acf3-ed00-442b-8d54-fc63f6284985</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;That seems like a possibility I&amp;#39;ll look into it. Thanks for all the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/thread/87316?ContentTypeID=1</link><pubDate>Mon, 29 May 2017 09:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9e0bf9a-a219-433b-acf5-1c0b21a6dfff</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you setting &lt;code&gt;m_xfer_done = false&lt;/code&gt; elsewhere in your code? I see you set this between transfers inside the functions, but not at the end. This could cause two transfers to be started at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/thread/87315?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 13:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e007a11d-a6ec-46b4-9157-e6e79177f745</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;So here&amp;#39;s the really weird and stupid thing. I ran in debug mode with DEBUG enabled I get invalid data in the second twi transfer in the accelerometer setup but then I was curious if the temp sensor would report the problem if it was listed second so I switched the order. Now the outputs work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad my code is working but the order in which I set up and call my devices shouldn&amp;#39;t matter. Any thoughts.&lt;/p&gt;
&lt;p&gt;I re-ordered it to set-up and run accelerometer first and now it works.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a link to the set_mode functions. &lt;a href="https://justpaste.it/177w9"&gt;https://justpaste.it/177w9&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with multiple TWI slave initialization</title><link>https://devzone.nordicsemi.com/thread/87318?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09a12b0-1216-4928-af7e-b5937668a25f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Most likely you get an error from one of the function calls, resulting in the error handler being called. Try debugging using &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this method&lt;/a&gt;, to see which function is failing, and what the returned error code is. It would also help if you could post the &lt;code&gt;LM75B_set_mode/MM865_set_mode&lt;/code&gt; functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>