<?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>MPU6050 on Xiao nRF52840 help in configuration file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111100/mpu6050-on-xiao-nrf52840-help-in-configuration-file</link><description>Good day! 
 
 I want to test two sensors, MPU6050 and MAX30101, in a Xiao nRF52840; however, I am struggling to obtain data from the MPU6050 sensor. I noticed that even if I enabled MPU6050 in the prj.conf, it tells me that it&amp;#39;s disabled in build. If</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 May 2024 08:08:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111100/mpu6050-on-xiao-nrf52840-help-in-configuration-file" /><item><title>RE: MPU6050 on Xiao nRF52840 help in configuration file</title><link>https://devzone.nordicsemi.com/thread/483179?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 08:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f247f16-58a8-491d-82a0-b23d3b638cb2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There seems to be a bug in your source code. You run &lt;em&gt;sensor_sample_fetch(mpu)&lt;/em&gt;, but then you call &lt;em&gt;sensor_channel_get(&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;strong&gt;dev&lt;/strong&gt;&lt;/span&gt;, SENSOR_CHAN_ACCEL_XYZ, accel)&lt;/em&gt; on the wrong device (dev instead of mpu).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you fix this and see if it works better?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>