<?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>Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62299/is-there-any-example-on-interfacing-nrf52840-with-icm-20601-using-spim</link><description>Hi guys, I just want to know if there&amp;#39;s a way for the above and how if yes.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 May 2021 11:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62299/is-there-any-example-on-interfacing-nrf52840-with-icm-20601-using-spim" /><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310715?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 11:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66649667-e757-4052-8001-f8485166f09f</guid><dc:creator>Kumar_P</dc:creator><description>&lt;p&gt;Hi Jerry,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Should there be a command delay between the write, read functions?&lt;/p&gt;
&lt;p&gt;Or try a different function for reading from SPI DRIVER instead of spi_transfer one. HAL_SPI DRIVER functions are better if we have.&lt;/p&gt;
&lt;p&gt;Also, make sure that MISO and MOSI are properly connected, just in case.&lt;/p&gt;
&lt;p&gt;No, I couldn&amp;#39;t work on that sensor as I moved to a ST one&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310619?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 07:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b07080-3e14-4ee9-9a72-7047d62d24bf</guid><dc:creator>Jerryxu</dc:creator><description>&lt;p&gt;Hi,Kumar&lt;/p&gt;
&lt;p&gt;I had think about that and I&amp;#39;ve tried to check all the 4 cases. But, strangely, the device ID returned was always 0x00 in the 4 cases.....&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_transfer() returned NRF_SUCCESS, seemed that there&amp;#39;s no problem in transmission.&amp;nbsp; But the returned value 0x00 showed that read_data function wasn&amp;#39;t work.......&lt;/p&gt;
&lt;p&gt;Have you read and write icm successfully by spi?Can you show me your code for a example?&lt;/p&gt;
&lt;p&gt;thanks a lot.&lt;/p&gt;
&lt;p&gt;Jerry&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310608?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 06:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5420687-5886-432b-8a38-9640baab461a</guid><dc:creator>Kumar_P</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Hi Jerry,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;That could be a problem with SPI PHASE and POLARITY.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Kindly check all the 4 cases with those.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Warm Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310478?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 13:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4119d61-c60d-40d5-8823-b11e06d4559a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Yes, I think that would be best - since the question seem to be specific to your implementation / application, rather than a general question about the the sensor itself such as in the original post here.&lt;br /&gt;&lt;br /&gt;Opening a new ticket will keep the forum tidy and easy to navigate, so thank you for considering this! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310473?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 13:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78c517b3-28a7-4730-a8e0-8f74cda9e55a</guid><dc:creator>Jerryxu</dc:creator><description>&lt;p&gt;emmmm.....&lt;/p&gt;
&lt;p&gt;Do I need to&amp;nbsp;&lt;span&gt;post&amp;nbsp;the question in new tickets.....maybe it would be better&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310471?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 13:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b41e024-d438-4bd4-bcb0-94cbd4c69957</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Jerry,&lt;/p&gt;
[quote user="Jerryxu"]I had some trouble, it seemed that code can&amp;#39;t read the right data from the sensor, such as sensor&amp;#39;s default device ID(0x12). I&amp;#39;m confused about it. If you have some suggentions? Or do you have any examples?[/quote]
&lt;p&gt;What do you mean that it cant read the right data? Are you able to read anything at all from the sensor, or do you mean that whatever you are able to read is not as expected?&lt;br /&gt;Do you notice any other unexpected behavior when you attempt this; does the device suddenly reset, or stop advertising, for example?&lt;br /&gt;&lt;br /&gt;Could you also describe how you have connected the sensor to your device, and do you have access to a logical analyzer so we could take a closer look at exactly what is happening on the lines?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/310439?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa816e2-4805-47b4-a089-2cd606ec7cdc</guid><dc:creator>Jerryxu</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Recently I tried to&amp;nbsp;read some data from&amp;nbsp;icm20602 sensor by spi. But I had some trouble, it seemed that code can&amp;#39;t read the right data from the sensor, such as sensor&amp;#39;s default device ID(0x12). I&amp;#39;m confused about it. If you have some suggentions? Or do you have any examples?&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;Jerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any example on interfacing nrf52840 with icm 20601 using spim?</title><link>https://devzone.nordicsemi.com/thread/253735?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 09:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d520e7d0-a8d3-442d-a531-edffb94083f7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I have not heard about this specific sensor, but you could see the usage of the SPIM driver demonstrated in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrfx_spim_example.html"&gt;the nrfx SPIM example from the SDK&lt;/a&gt;.&lt;br /&gt;From there, you would either have to &lt;a href="https://invensense.tdk.com/wp-content/uploads/2015/12/DS-000191-ICM-20601-v1.0.pdf"&gt;implement the sensor specific SPI interface from the datasheet&lt;/a&gt;(assuming this is the right datasheet. I might be mistaken), or finding a similar implementation and seeing if you can make it work on your device.&lt;br /&gt;A quick search on github yielded multiple public repositories with drivers for the ICM 20601, which might be very useful to have a look at.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>