<?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>How to use TWI with BLE to transfer MPU6050 data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27116/how-to-use-twi-with-ble-to-transfer-mpu6050-data</link><description>Hi, 
 I am developing on NRF51822 custom board but I had a problem on how to init TWI driver to communicate with MPU6050. 
 In short, when receiving a BLE_CONNECTED event I trigger a TIMER wih rearming every 2second. Within the timer_timeout_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jul 2017 02:37:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27116/how-to-use-twi-with-ble-to-transfer-mpu6050-data" /><item><title>RE: How to use TWI with BLE to transfer MPU6050 data</title><link>https://devzone.nordicsemi.com/thread/106697?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2017 02:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72683dd-8000-49ef-bf6e-84492728bca7</guid><dc:creator>harlek</dc:creator><description>&lt;p&gt;Thank you so much for the great support, Martin.&lt;/p&gt;
&lt;p&gt;It is really helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use TWI with BLE to transfer MPU6050 data</title><link>https://devzone.nordicsemi.com/thread/106696?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 06:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3828aea-f3e4-4f64-b839-b45f596c2576</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is probably related to your interrupt priorities. See these posts:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/79226/can-ble_nus_string_send-be-called-from-a-twi-callback/"&gt;Can ble_nus_string_send() be called from a TWI callback?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/154765/spi-hangs-within-rtc-cc-callback/?comment=154804#comment-154804"&gt;SPI hangs within RTC CC callback closed&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use TWI with BLE to transfer MPU6050 data</title><link>https://devzone.nordicsemi.com/thread/106695?ContentTypeID=1</link><pubDate>Sun, 16 Jul 2017 09:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d69441-ae4e-47da-88d1-af1691b4a711</guid><dc:creator>harlek</dc:creator><description>&lt;p&gt;I made a reference on this &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples"&gt;EXAMPLE&lt;/a&gt;
and start  writing my own project. But twi_tx always TIMEOUT and the twi_handler() function was never called.&lt;/p&gt;
&lt;p&gt;Do you know any idea why?&lt;/p&gt;
&lt;p&gt;I also attached the code
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/677157.main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>