<?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>NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92520/nrf528540-with-mpu9255-problem</link><description>Hello guys, i currently applying the example about MPU9255 following this: GitHub - Martinsbl/nrf5-mpu-examples 
 i&amp;#39;m using the app_mpu.c, app_mpu.h, mpu9255_register_map.h, nrf_drv_mpu.h, nrf_drv_mpu_twi.c to create new project with the main.c and sdk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 09 Oct 2022 13:16:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92520/nrf528540-with-mpu9255-problem" /><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/389904?ContentTypeID=1</link><pubDate>Sun, 09 Oct 2022 13:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0dc12ae-efae-422c-8d5f-a929acda6149</guid><dc:creator>kyle.ng1</dc:creator><description>&lt;p&gt;Hello Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have changed the pin out of SDA and SCL it worked normally thank for your support&lt;/p&gt;
&lt;p&gt;Best Regard,&lt;/p&gt;
&lt;p&gt;Kyle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/389773?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 09:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7991fbbb-0030-492c-9c16-17f76b6c43d6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Kyle,&lt;/p&gt;
[quote user="kyle.ng1"]i have built 1 project before to test the response of TWI it&amp;#39;s work normally,[/quote]
&lt;p&gt;Does the TWI from the nRF work normally, or does the TWI on the MPU work normally?&lt;/p&gt;
&lt;p&gt;The screenshot of the log in your last reply, is that from the SDK\examples\peripheral\twi_scanner example, or is it from your nrf5-mpu-simple application?&lt;/p&gt;
&lt;p&gt;Either way, it suggests that no TWI devices are connected correctly. At least not that the nRF can see.&lt;/p&gt;
&lt;p&gt;Did you try to analyze the TWI bus using a logic analyzer? Does the MPU send a reply?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/389646?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 13:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af948ce6-6ca6-4300-9e7d-fbc181a9fb42</guid><dc:creator>kyle.ng1</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is my main.c file&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7506.main.c"&gt;devzone.nordicsemi.com/.../7506.main.c&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The MPU was powered and i have built 1 project before to test the response of TWI it&amp;#39;s work normally, but the init of MPU is fail, idk why?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/300221802_5F00_439667221484972_5F00_3211208970367570208_5F00_n.png" /&gt;&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="389609" data-userid="26071" data-permalink="~/f/nordic-q-a/92520/nrf528540-with-mpu9255-problem/389609"&gt;
&lt;div class="content"&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kyle&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/389609?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 12:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e64af9-84d0-4e60-8071-06175a5ba272</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please send me the main.c file (your latest version) with the corresponding error log. The log would not say what it says if your line 35 is ret_code_t = app_mpu_config(...).&lt;/p&gt;
&lt;p&gt;mpu_init() doesn&amp;#39;t return any parameters (at least not in the unmodified nrf5-mpu-init\main.c file).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I guess it is app_mpu_config() that returns 13, then. If that is the case, it looks like the nrf_drv_mpu_write_registers() returns NRF_ERROR_TIMEOUT, meaning that nrf_drv_twi_xfer() doesn&amp;#39;t receive a callback. Is the MPU powered? Have you tried to analyze the TWI pins using a logic analyzer? Is the TWI data sent from the nRF? And does the MPU reply over TWI?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/389467?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 15:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f9c6ddf-f994-473f-862f-a35d14778775</guid><dc:creator>kyle.ng1</dc:creator><description>&lt;p&gt;Hello Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The line 35 in my main.c is &lt;strong&gt;ret_code = app_mpu_config(&amp;amp;p_mpu_config); // Configure the MPU with above values&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;function that return error 13 is the mpu_init function.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using segger embedded studio but i&amp;#39;m already add the&amp;nbsp;&lt;span&gt;preprocessor definitions&amp;nbsp;&lt;/span&gt;&lt;span&gt;MPU9255 and&amp;nbsp;MPU_USES_TWI.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kyle&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF528540 with MPU9255 Problem</title><link>https://devzone.nordicsemi.com/thread/388937?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 09:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf977935-c509-4890-89ce-d4757d2fd59e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Line 35 in main.c in the nrf5-mpu-simple application is just a comment, so obviously you did some modifications, at least removed the comments on the top.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What function returned the error 13 that was passed into your APP_ERROR_CHECK(err_code) in main.c on line 35?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you using Keil? Did you add the preprocessor definitions&amp;nbsp;&lt;span&gt;MPU9255 and&amp;nbsp;MPU_USES_TWI to your project settings, according to the readme file in the github repository that you linked to?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>