<?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>LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc</link><description>Hi , 
 I am trying to integrate LSM6DSL to BL5340 module(laird connectivity) through SPI but I am getting failed on initialization. I am noob to NRF so could someone please help to resolve it. 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2024 12:19:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc" /><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507353?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 12:19:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc00e966-0a01-4b64-a164-7a7b8eb9192f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to buy an&amp;nbsp;&lt;span&gt;LSM6DSL&amp;nbsp;module and connect to an nRF5340 DK for further debugging, then you will also be able to connect a logic analyzer to the pins in questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507263?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 07:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9af058d0-283f-4497-9cc0-f06052cc2a21</guid><dc:creator>S.M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507117"]I suggest to connect a logic analyzer to the spi pins and irq, to see what data is actually sent/received. Just to check if it looks okey (clock toggle as expected, chip select go low, data on miso/mosi etc). Maybe some of the pins are not connected or setup correctly, maybe the sensor is not working/powered as expected.[/quote]
&lt;p&gt;sorry that provisions are not available in our board&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507117"]&lt;p&gt;I notice you are using gpio port0 pin2, which overlap with nfc, so make sure you do the following in the overlay file:&lt;/p&gt;
&lt;p&gt;&amp;amp;uicr {&lt;br /&gt;&amp;nbsp; &amp;nbsp; nfct-pins-as-gpios;&lt;br /&gt;};&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for the input I tried but facing same error&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507117"]Also, it&amp;#39;s spelled aliases, in case that can be part of the problem.[/quote]
&lt;p&gt;Sorry that&amp;#39;s my typo mistake in overlay it was fine&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;S.M&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507117?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 11:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee1e9bfd-4682-494d-8e82-0aa5953f4cbe</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I suggest to connect a logic analyzer to the spi pins and irq, to see what data is actually sent/received. Just to check if it looks okey (clock toggle as expected, chip select go low, data on miso/mosi etc). Maybe some of the pins are not connected or setup correctly, maybe the sensor is not working/powered as expected.&lt;/p&gt;
&lt;p&gt;I notice you are using gpio port0 pin2, which overlap with nfc, so make sure you do the following in the overlay file:&lt;/p&gt;
&lt;p&gt;&amp;amp;uicr {&lt;br /&gt;&amp;nbsp; &amp;nbsp; nfct-pins-as-gpios;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Also, it&amp;#39;s spelled aliases, in case that can be part of the problem.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507081?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 09:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df020387-d982-46d0-a749-c178065af1ae</guid><dc:creator>S.M</dc:creator><description>&lt;p&gt;Thanks for the input,&lt;/p&gt;
&lt;p&gt;I followed the example but still ended up on same error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;S.M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507053?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 07:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937d7ba2-75f5-4a28-98af-02eb21b3febc</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Could you try the &lt;a href="https://docs.zephyrproject.org/latest/samples/sensor/lsm6dso/README.html"&gt;lsm6dsl sample&lt;/a&gt; just to see if it works as expected? You can also try to add&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LSM6DSL_TRIGGER_GLOBAL_THREAD&lt;/span&gt;&lt;span&gt;&lt;span&gt;=y and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Enable GPIO&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GPIO=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As I don&amp;#39;t see anything wrong, can you draw me the wiring?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards&lt;/div&gt;
&lt;div&gt;Runar&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507049?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 06:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2db913-6fa7-4e58-9846-873921e6091d</guid><dc:creator>S.M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the response. Here I attached the thinks needed.&lt;/p&gt;
[quote userid="122502" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507048"]Which version of NCS are you using?[/quote]
&lt;p&gt;I am using NCS&amp;nbsp;&lt;strong&gt;V2.5.2&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
[quote userid="122502" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507048"]When you say it fails, which error do you get?[/quote]
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Check if device is initialized correctly. */
	if (!device_is_ready(imu_dev)) {
        /* Not ready, do not use */
		LOG_DBG(&amp;quot;IMU device init fail.&amp;quot;);
        return;
	}&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;device_is_ready &lt;/strong&gt;is getting failed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729493763369v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="122502" url="~/f/nordic-q-a/115688/lsm6dsl-is-failing-on-custom-board-with-nrf5340soc/507048"]Please also provide the prj.conf[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# ------------------------SPI--------------
CONFIG_SPI=y
# ---------------------------For IMU LSM6DSL----------------
CONFIG_SENSOR=y
CONFIG_LSM6DSL=y
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LSM6DSL is failing on custom board with NRF5340soc</title><link>https://devzone.nordicsemi.com/thread/507048?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 06:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8038b832-3ea0-4fee-aa3a-65e6e86561f4</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi I hope you have a great day!&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see anything that stands out so I have a few questions:&lt;/p&gt;
&lt;p&gt;Which version of NCS are you using?&lt;/p&gt;
&lt;p&gt;When you say it fails, which error do you get?&lt;/p&gt;
&lt;p&gt;There are a number of Kconfig needed for the sensor which you can find here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#!CONFIG_LSM6DSL"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#!CONFIG_LSM6DSL&lt;/a&gt;&amp;nbsp;have you added it to your prj.conf ? This will also include CONFIG_SPI=y and CONFIG_SENSOR=y&lt;/p&gt;
&lt;p&gt;Please also provide the prj.conf&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>