<?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>Interfacing ST IMU(LSM6DSV) with nRF52840dk via SPI interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122985/interfacing-st-imu-lsm6dsv-with-nrf52840dk-via-spi-interface</link><description>Hi, I just tried to connect LSM6DSV IMU with nRF52840dk 
 The whole folder structure is shown below : 
 
 1. I set nrf52840dk_nrf52840.overlay file first. 
 
 
 
 
 
 2. I set main.c as below also : 
 but I failed to get proper WHO_AM_I result from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jul 2025 05:15:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122985/interfacing-st-imu-lsm6dsv-with-nrf52840dk-via-spi-interface" /><item><title>RE: Interfacing ST IMU(LSM6DSV) with nRF52840dk via SPI interface</title><link>https://devzone.nordicsemi.com/thread/542698?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 05:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba8953d1-ec4e-42f9-9b08-372ecc8a5ee3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I had a quick look at the datasheet and it seems like all that is needed to switch to SPI mode on this sensor is to pull the CS signal low before initiating the transfer. There is also&amp;nbsp;the&amp;nbsp;&lt;a title="Get accelerometer and gyroscope data from an LSM6DSL sensor (polling &amp;amp; trigger mode)." href="https://docs.nordicsemi.com/bundle/ncs-3.1.0-preview3/page/zephyr/samples/sensor/lsm6dsl/README.html#lsmd6dsl"&gt;LSM6DSL IMU sensor&lt;/a&gt;&amp;nbsp;sample in the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have a logic analyzer or oscilloscope, I recommend probing the bus lines to troubleshoot further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing ST IMU(LSM6DSV) with nRF52840dk via SPI interface</title><link>https://devzone.nordicsemi.com/thread/542653?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 13:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b3fc0bb-e65f-462b-b1f5-bdff2b2ee51e</guid><dc:creator>4past12</dc:creator><description>&lt;p&gt;Okay, I just switched pin option, but it still does not work&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any chance if the sensor is not set in SPI mode?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing ST IMU(LSM6DSV) with nRF52840dk via SPI interface</title><link>https://devzone.nordicsemi.com/thread/542628?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 10:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318abe8d-0f02-4c6a-a344-e5e5ad19e36c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The pins you have assigned to the SPI are connected to the on-board SPI flash by default:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_external_memory.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_external_memory.html&lt;/a&gt;. You can look at the silkscreen on the board (backside) to find some pins that are available. For example, p0.2, p0.28, and p0.29.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>