<?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 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93274/nrf52-with-mpu9255-magnetometer-with-easydma</link><description>Hello everyone, 
 I currently using this lib: GitHub - Martinsbl/nrf5-mpu-examples to read data from MPU9255, when I&amp;#39;m using the easydma for accelerometer and gyros its work normally but when I&amp;#39;m trying to read the data from the magnetometer it doesn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Nov 2022 09:15:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93274/nrf52-with-mpu9255-magnetometer-with-easydma" /><item><title>RE: NRF52 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/thread/394343?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 09:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8e3c6a3-6b2d-41eb-8627-5d7049ec6987</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kyle,&lt;/p&gt;
&lt;p&gt;You may look at zephyr instead&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/mpu9250"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/drivers/sensor/mpu9250&lt;/a&gt;&amp;nbsp;, there is a MPU9250 driver.&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/thread/393449?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 12:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cca6ae8-1085-4519-b60b-c50e4051f167</guid><dc:creator>kyle.ng1</dc:creator><description>&lt;p&gt;It&amp;#39;s returned the value of magnetometer is 0. I had added the address for the magnetometer, but the result maintained. In the instruction, the status register&amp;nbsp;MPU_AK89XX_REG_ST2 have to be read at the end maybe I&amp;#39;m missed this, but I don&amp;#39;t know how to implement it, could you help me.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/01548.main.c"&gt;devzone.nordicsemi.com/.../01548.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Kyle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/thread/393424?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 10:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41855460-7219-4303-86ab-39e41b546a7d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We need more information. Have you got any error code to show which is not working?&amp;nbsp;&lt;span&gt;MPU_AK89XX_REG_HXL is your&amp;nbsp;magnetometer. Have you defined it correctly according to the datasheet of the device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here we can see &lt;a href="https://github.com/Martinsbl/nrf5-mpu-examples/blob/e2f654f27590388d3eb9a3730fe8fe8d510ff5d4/nrf_drv_mpu_twi.c#L30"&gt;nrf5-mpu-examples/nrf_drv_mpu_twi.c at e2f654f27590388d3eb9a3730fe8fe8d510ff5d4 · Martinsbl/nrf5-mpu-examples (github.com)&lt;/a&gt;&amp;nbsp;the address of magnetometer&amp;nbsp;is 0x0C (#&lt;span&gt;define&lt;/span&gt; &lt;span&gt;MPU_AK89XX_MAGN_ADDRESS&lt;/span&gt; &lt;span&gt;0x0C). You have used the address of accelerometer as the address of magnetometer. So,&amp;nbsp;it might not response.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/thread/392861?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 13:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595edaf8-f060-4d8b-98cd-25c95c164303</guid><dc:creator>kyle.ng1</dc:creator><description>&lt;p&gt;Hello Kazi,&lt;/p&gt;
&lt;p&gt;1. I have modified the output pin and changing the p_tx_buffer[1] to read the address of magnetometer.&lt;/p&gt;
&lt;p&gt;2. I&amp;#39;m using the latest SDK.&lt;/p&gt;
&lt;p&gt;3. I&amp;#39;m using 5 pins of sensor to connect with the nRF52 2 pins power, SDA, SCL and INT pin. I&amp;#39;m using the TWIM.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is my main file:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/73678.main.c"&gt;devzone.nordicsemi.com/.../73678.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kyle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 with MPU9255: magnetometer with easydma</title><link>https://devzone.nordicsemi.com/thread/392795?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 11:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5001c871-3bfc-4b90-b6b0-c8517df5ab65</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kyle,&lt;/p&gt;
&lt;p&gt;We would like to know more information.&lt;/p&gt;
&lt;p&gt;1. Did you use these examples without modifications?&lt;/p&gt;
&lt;p&gt;2. Did you use Old SDK that the examples were written during building?&lt;/p&gt;
&lt;p&gt;3. How did you connect the sensor to nRF52? Did you use TWI or SPI?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>