<?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>I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19590/i2c-timer1-timer2-softdevice-s210</link><description>Hi Nordic, 
 My application does the following: 
 
 Timer 2 takes care of controlling a shift register (CLK and DATA) 
 Timer 1 takes care of polling data from sensor via I2C, each 10ms 
 We are continuously sending and receiving data from one opened</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Feb 2017 19:06:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19590/i2c-timer1-timer2-softdevice-s210" /><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76236?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 19:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3710b58e-7349-4503-b523-4440dc9eecd0</guid><dc:creator>angel</dc:creator><description>&lt;p&gt;Ok I solved it after a few hours. The MPU is a bit slower than the ARM, and as I didnt develop any exception or timeout for I2C when the device is not present (or not initialized in this case), I was getting stuck when I was starting from 0V everything. Now I put a delay of 100ms in the beginning of ARM code and everything goes good. With more time, I&amp;#39;ll develop some timeout for I2C and retrials.&lt;/p&gt;
&lt;p&gt;Thanks Petter!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76232?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b207f26e-87f5-4a45-b50b-216642d415d6</guid><dc:creator>angel</dc:creator><description>&lt;p&gt;I will try that in a couple of hours Petter. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76230?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b188abf1-7013-4b21-9506-49288c5dfd3d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Just zip your complete project, edit the question and click the paper clip symbol. Does it help if you change APP_IRQ_PRIORITY_HIGH to NRF_APP_PRIORITY_LOW in twi_init()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76231?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:43:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c348aa3b-9c8a-4289-bc00-5683836eedf8</guid><dc:creator>angel</dc:creator><description>&lt;p&gt;How do you usually share projects over here?&lt;/p&gt;
&lt;p&gt;Also I added my source file for I2C driver.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76229?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0810cd5d-8582-46f4-bc03-200eae7db97a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Thanks, but I still don&amp;#39;t see how you are using the TWI peripheral. Please consider sharing your complete project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76228?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726f92ea-814c-417c-a29a-7ae2aec83cc6</guid><dc:creator>angel</dc:creator><description>&lt;p&gt;Added mpu_handle_timer_interrupt(). Sorry for indentation, spaces and tabs are mixing here... The project is becoming a bit big, a lot of files and everything, I will send it to you if we cannot find the problem easily through this functions... The function MPU6050_getMotion6(....) just reads some registers via i2c. I know that this function works outside the timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76235?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34108002-f194-435c-8748-091e627ab72d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;And what is happening inside mpu_handle_timer_interrupt()? You could also upload your complete project so I can test it here. Then you should let us know what SDK and SoftDevice version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76234?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 13:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3aba5c-1fa2-4fff-8f05-c147efaae9b8</guid><dc:creator>angel</dc:creator><description>&lt;p&gt;I edited my question with timers code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2c + timer1 + timer2 + softdevice(S210)</title><link>https://devzone.nordicsemi.com/thread/76233?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 12:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef274c0-d044-4b33-b6eb-04ab68e35632</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is it that doesn&amp;#39;t work good? What happens? What interrupt priorities are you using? How are you using timer 1? How are you using the TWI peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>