<?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>ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61234/icm20948-magnetometer-issue</link><description>Hi, 
 I am develloping product witch ICM20948 and need to use magnetometer. I tried to move some existing and working code for arduino. I was able to get data from magnetometer. But next day when i tried the same thing, magnetometer wasnt responding.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jun 2022 03:14:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61234/icm20948-magnetometer-issue" /><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/373334?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 03:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55649b2-021d-4b4d-afbb-8af3e33416b5</guid><dc:creator>AYAO</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for sharing your wisdom with me. This really help me a lot！&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/281903?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 17:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f27eb111-bafe-4198-941c-3aba3e44c478</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;Invensense Embeded motion driver make this quite simple. &amp;nbsp;You can look at the Nucleo ICM20948 Emd exemple on their website(developper corner).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/281852?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 14:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91736a10-765e-459e-a089-38046e73d238</guid><dc:creator>SamirFarhat</dc:creator><description>&lt;p&gt;Hi, I know this as asked a while ago, but there is still very little information on how to get the icm20948 magnetometer working in SPI mode. So thought I&amp;#39;d write this to clarify. The magnetometer can be written to and read from in SPI mode. The sequence for this is as follows.&lt;/p&gt;
&lt;p&gt;1. Write to the USER_CTRL register, setting I2C_MST_EN&lt;/p&gt;
&lt;p&gt;2. Write to I2C_MST_CTRL, setting the bus speed 400KHz and to stop between read&lt;/p&gt;
&lt;p&gt;3. Write to I2C_MST_DELAY_CTRL, enabling delay odr for the slave you wish the mag to be represented by(the following instructions will assume 0.&lt;/p&gt;
&lt;p&gt;4. Write to I2C_SLV0_ADDR to write mode, and slave address to the magnetometer (0x0C)&lt;/p&gt;
&lt;p&gt;5. Write to I2C_SLV0_REG, setting the address to be written as the address of CTRL2 in the magnetometer&lt;/p&gt;
&lt;p&gt;6. Populate ICM20948_I2C_SLV0_DO with the desired control setting&lt;/p&gt;
&lt;p&gt;7. Write to ICM20948_I2C_SLV0_CTRL,&amp;nbsp; enabling the mag and setting the grouping and bytes to be read&lt;/p&gt;
&lt;p&gt;8. Switch I2C_SLV0_ADDR to read mode and I2C_SLV0_REG to HXL&lt;/p&gt;
&lt;p&gt;9. EXT_SLV_SENS_DATA_(00 to 06) will now be populated with HXL to ST2. It should be noted that reading ST2 is necessary as this automatically triggers the data to update in the axis registers.&lt;/p&gt;
&lt;p&gt;10. Additionally, FIFO_EN_1 can be set to write slv(magnetometer) data to the FIFO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/270951?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 21:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9b680f-d539-4aaa-b96a-b8e89a030788</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Driver is available here&amp;nbsp;&lt;a href="https://github.com/IOsonata/IOsonata/blob/master/src/sensors/agm_invn_icm20948.cpp"&gt;https://github.com/IOsonata/IOsonata/blob/master/src/sensors/agm_invn_icm20948.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Works with nRFx series.&lt;/p&gt;
&lt;p&gt;Usage example here&amp;nbsp;&lt;a href="https://github.com/IOsonata/IOsonata/tree/master/exemples/sensor"&gt;https://github.com/IOsonata/IOsonata/tree/master/exemples/sensor&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example that is compatible with Thingy App.&amp;nbsp;&lt;a href="https://github.com/IOsonata/IOsonata/tree/master/ARM/Nordic/exemples/BlueIOThingy"&gt;github.com/.../BlueIOThingy&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/270900?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 14:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb6790b7-bd23-4efe-b55e-355887dd2365</guid><dc:creator>ChandraSR K</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;the below link couldn&amp;#39;t access, &lt;a href="https://github.com/github-deden/nRF52832_ICM20948_DMP_Samples"&gt;https://github.com/github-deden/nRF52832_ICM20948_DMP_Samples&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Can you help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/251070?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 17:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be870647-f3ed-4364-8165-cad97253cddb</guid><dc:creator>Pepam</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Many many thanks for help &lt;a href="https://devzone.nordicsemi.com/members/sl06"&gt;SL06&lt;/a&gt;, I am studying the driver now. Magnetometers and all other sensors now working fine. Still have some questions related to fifo data processing and dmp settings to reduce current consumption. Wouldn&amp;#39;t you mind, if I contact you by email or something different? It would help me a lot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/250302?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 21:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2feec89d-22a1-4bc6-ab32-ab18d25b5960</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;If you look on Github web site, you will find an exemple of the ICM20948 working with the nrf52832. &lt;a href="https://github.com/github-deden/nRF52832_ICM20948_DMP_Samples"&gt;https://github.com/github-deden/nRF52832_ICM20948_DMP_Samples&lt;/a&gt;&amp;nbsp;&amp;nbsp;Read the issues section to get the magnetometer working properly (small change in the code needed). &amp;nbsp;There is also an improve i2c driver in the issues. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code is based on Invensense Embedded&amp;nbsp;motion driver. You should download also that code from there web site in the developper section. &amp;nbsp;Download the version&amp;nbsp;for the nucleo board.&amp;nbsp; &amp;nbsp;I have develop softwares for the&amp;nbsp;nrf52832 board and ICM20948,&amp;nbsp;using ESB communication between&amp;nbsp;7 peripheral and 1 central. &amp;nbsp;Still some testing phase but so far so good. &amp;nbsp;Software just need optimisation but it basically work. Good luck with your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/249366?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 08:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf22a84-3d35-4d7b-9622-948c75ceb1ec</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Pepam"]I am reading from icm&amp;#39;s external slave 0 registers I am always getting 0 for all of them.[/quote]
&lt;p&gt;&amp;nbsp;We need to see your code related to reading these registers and we need a digital analyzer scope of the read sequence.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/249185?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 12:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98a33c51-881f-4743-85e6-deb26607b9a0</guid><dc:creator>Pepam</dc:creator><description>&lt;p&gt;That inertial i2c master connection magnetometr --- i2c master (in icm20948 there is a module which offers to connect more external sensors and read their data form icm&amp;#39;s registers) is not correct, because I am not able to read valuable data from it. From magnetometers registers I am reading from icm&amp;#39;s external slave 0 registers I am always getting 0 for all of them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/249163?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 10:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af7f3252-0158-4038-b02f-496c35cac396</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I get that it does not work, but what is the actual issue here, what are your symptoms?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/249119?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 08:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d0dba65-2818-4df1-a39b-b984ac90e290</guid><dc:creator>Pepam</dc:creator><description>&lt;p&gt;Yes, sorry for lack of information. I have modified&amp;nbsp;&lt;a href="https://github.com/dtornqvist/icm-20948-arduino-library/blob/master/src/ICM20948.cpp"&gt;this&lt;/a&gt;&amp;nbsp;Arduino driver to twi driver from &lt;a href="https://devzone.nordicsemi.com/members/martinbl"&gt;MartinBL&lt;/a&gt; examples for mpu9250 and others. I am attaching my code. I have modified it and added some unnecessary functions just for testing, so some functions are not important. But the arrangement in ICM20948_begin is the same as in Arduino driver. The problem isnt in twi driver i am sure, because data from inetrial accelerometer and gyro i am able to read, but not data from magnetometer. Please see my driver. Using twi driver from &lt;a href="https://devzone.nordicsemi.com/members/martinbl"&gt;MartinBL&lt;/a&gt; &amp;#39;s mpu examples modified for icm and for SDK15.2. Working witch segger embedded studio and pca10040.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_ICM20948.zip"&gt;devzone.nordicsemi.com/.../app_5F00_ICM20948.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ICM20948 magnetometer issue</title><link>https://devzone.nordicsemi.com/thread/249106?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 08:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9c60da-92c3-474c-baf3-c4c6921a8263</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you have any information on this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>