<?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 MPU6050 example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35153/nrf52-mpu6050-example</link><description>Hi, im using nRF 52 DK. I want to interfac mpu6050 by using the example found on this page https://github.com/Martinsbl/nrf5-mpu-examples . I&amp;#39;m particularly using the example linked below, which uses twi. I need to biuld this example and download it on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 11:24:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35153/nrf52-mpu6050-example" /><item><title>RE: NRF52 MPU6050 example</title><link>https://devzone.nordicsemi.com/thread/136144?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 11:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca84877-bf02-463e-83b7-75efd6d4a9c4</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&amp;nbsp;include the path to app_mpu.h file in c/c++ preprocessor.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Go to &amp;quot;Options for Target&amp;quot;:&amp;nbsp;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6e9aea9575c34e32a1c34b6c246babe3/pastedimage1528975305281v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then &amp;quot;C/C++&amp;quot; tab --&amp;gt; include paths:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6e9aea9575c34e32a1c34b6c246babe3/pastedimage1528975356075v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Include the path where &amp;quot;app_mpu.h&amp;quot; is located:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6e9aea9575c34e32a1c34b6c246babe3/pastedimage1528975404560v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;in my case [...&amp;nbsp;nRF5_SDK_14.2.0_17b948a\examples\nrf5-mpu-examples&lt;strong&gt;-master&lt;/strong&gt;] )&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 MPU6050 example</title><link>https://devzone.nordicsemi.com/thread/136122?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 10:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:195ce96c-4c33-47c7-a559-8ee043bff3b5</guid><dc:creator>lauraalri</dc:creator><description>&lt;p&gt;Yes, I did.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 MPU6050 example</title><link>https://devzone.nordicsemi.com/thread/135605?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 13:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732b8b70-6fd3-4e2c-8416-02d519e52b2e</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;lauraalri,&lt;/p&gt;
&lt;p&gt;Have you followed the tips from the &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples" target="_blank" rel="noopener noreferrer"&gt;Readme&lt;/a&gt;?:&lt;/p&gt;
&lt;h1&gt;How to use:&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;All examples are made for SDK 14.2.0. Other SDKs will not work. Download the zip file and extract to &amp;quot;sdk_14.2.0_folder\examples&amp;quot;. Or just clone it to the same folder.&lt;/li&gt;
&lt;li&gt;Define your MPU in Keil&amp;#39;s &amp;quot;Target Options -&amp;gt; C/C++&amp;quot;. Use define &amp;quot;MPU9255&amp;quot;, &amp;quot;MPU9150&amp;quot;, or &amp;quot;MPU60x0&amp;quot;.&lt;/li&gt;
&lt;li&gt;Decide whether to use TWI or SPI in Keil&amp;#39;s &amp;quot;Target Options -&amp;gt; C/C++&amp;quot; by using defines MPU_USES_SPI or MPU_USES_TWI.&lt;/li&gt;
&lt;li&gt;Select SPI_ENABLED&amp;nbsp;&lt;strong&gt;or&lt;/strong&gt;&amp;nbsp;TWI_ENABLED in sdk_config.h dependent on your choice above.&lt;/li&gt;
&lt;li&gt;Remember to define the correct TWI, SPI, and/or interrupt pins. The SPI and TWI pin defines are located in the nrf_drv_mpu_xxi.c files. The GPIOTE interrupt pin is defined in main.c.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Also you could right click on the folder above Application, press Options for Target &amp;#39;....&amp;#39;, go to the C/C++ tab, press on the ... button to the right of include paths, scroll all the way to the bottom &amp;amp; change nrf5-mpu-examples to nrf5-mpu-examples-master. The app_mpu.h file is located inside this nrf5-mpu-examples-master folder. You need to go back 5 folders from the Keil project to reach the nrf5-mpu-examples-master folder,&amp;nbsp;which is why the last line should look like this:&amp;nbsp;..\..\..\..\..\nrf5-mpu-examples-master (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28508/issue-with-mpu9250-and-nrf52/123831"&gt;Tips from similar thread)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>