<?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 LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99999/interfacing-lsm6ds3tr-c-with-spi-nrf9160</link><description>Hi, 
 I am using the nrf9160dk board to interface the IMU Sensor LSM6DS3TR-C using SPI. I&amp;#39;m trying to run through the LSM6DSL sensor interface, I&amp;#39;ve read the documentation for both sensors and they use the same register addresses, so I don&amp;#39;t believe that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2023 07:43:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99999/interfacing-lsm6ds3tr-c-with-spi-nrf9160" /><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/428916?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 07:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc130270-ab9b-4783-9e6f-7570a1bfde3c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Mindtech"]Follows the signals in the logic analyzer[/quote]
&lt;p&gt;As compared to arduino scope, it looks like your &amp;quot;CS&amp;quot; is actually CLK, and vice-versa. Due to the zoomed out picture, it is not possible to see the potential transactions.&lt;/p&gt;
&lt;p&gt;Could you double check your pin-out to see if there&amp;#39;s no mismatch there?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/428807?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 15:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec28e4ec-6b8e-4319-9afa-481b05c2b094</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;Sorry for the delay in reply...&lt;/p&gt;
&lt;p&gt;Follows the signals in the logic analyzer&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5824.image.png" /&gt;&lt;/p&gt;
&lt;p&gt;The same sensor using Arduino:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/esp32.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/427523?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 12:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3420f9-80ca-45e7-9c01-6c097e2351c9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you connect a logic analyzer to the SPI pins and share the result?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/427265?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 13:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25b68f9-15c3-4985-8001-779c53f1f3b7</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;Unfortunately I already tried with P0.08/P0.09 in the &amp;quot;NC&amp;quot; position, nothing...&lt;/p&gt;
&lt;p&gt;EDIT: Using nRF52833dk&amp;nbsp;i had the same error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/427121?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 08:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de753e8-6683-488b-8d44-d24a50dbd92d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pins you&amp;#39;re using now overlaps with the pins that are directly connected to the nRF52840 on the nRF9160-DK. Depending on the configuration of the board controller, these GPIOs could be directly connected from nRF9160-&amp;gt;nRF52840.&lt;/p&gt;
[quote user="Mindtech"]I checked the pins as you recommended and indeed one of them was grounded, [/quote]
&lt;p&gt;If you set the switch 1 and switch 2 in the &amp;quot;NC&amp;quot; position, they should not interfere with the signal on P0.08/P0.09.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you use a logic analyzer to see which GPIOs are toggling.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/427043?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 20:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be534822-d5b1-4540-b9b7-11057a414601</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon, &lt;br /&gt;&lt;br /&gt;Thanks for the feedback, unfortunately it&amp;#39;s still not working... &lt;br /&gt;&lt;br /&gt;I checked the pins as you recommended and indeed one of them was grounded, but I tried switching to other gpios and still didn&amp;#39;t get any results...&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	aliases {
		lsm6dsl1 = &amp;amp;lsm6dsl1;
	};
};

&amp;amp;pinctrl {
    spi1_default: spi1_default {
		group1 {
			psels = &amp;lt; NRF_PSEL(SPIM_SCK, 0, 19) &amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 18)&amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MISO, 0, 21)&amp;gt;;
		};
	};

	spi1_sleep: spi1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 18)&amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MISO, 0, 21)&amp;gt;;
			low-power-enable;
		};
	};
};

&amp;amp;spi1 {
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 17 GPIO_ACTIVE_LOW &amp;gt;;
    lsm6dsl1: lsm6dsl@0 {
		compatible = &amp;quot;st,lsm6dsl&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		reg = &amp;lt;0x0&amp;gt;;
		spi-max-frequency = &amp;lt;10000000&amp;gt;;
		irq-gpios = &amp;lt; &amp;amp;gpio0 22 GPIO_ACTIVE_LOW &amp;gt;;
	};
};

&amp;amp;spi3 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to get the signals on the oscilloscope to see if the behavior of the spi is visible, but still nothing.&lt;br /&gt;&lt;br /&gt;I tested the sensor on an arduino and it worked normally, so it&amp;#39;s something I&amp;#39;m missing on the nRf9160.&lt;br /&gt;&lt;br /&gt;Any more suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing LSM6DS3TR-C with SPI NRF9160</title><link>https://devzone.nordicsemi.com/thread/426909?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 12:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58270f1e-1a6f-4a73-a8cd-fe2005ff5848</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;P0.11 goes to the external memory on the nRF9160-DK.&lt;/p&gt;
&lt;p&gt;P0.08/P0.09 goes to the switches, so depending on their position, those GPIOs can potentially be grounded&lt;/p&gt;
&lt;p&gt;See here for more information:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/if_connector.html?cp=2_0_4_3_5"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/if_connector.html?cp=2_0_4_3_5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you probe these pins to see if they behave as expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>