<?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>Example of LSM6DS not compilng</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115254/example-of-lsm6ds-not-compilng</link><description>Hello i tried a lot but i am unable to Compile this , its is expected examples available in sdk should compile smoothly if there are no changes in it, 
 i was expecting remote support i trying from 2 days am too fustrated, pls support via zoom or google</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2024 13:10:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115254/example-of-lsm6ds-not-compilng" /><item><title>RE: Example of LSM6DS not compilng</title><link>https://devzone.nordicsemi.com/thread/505741?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 13:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0dfb830-a280-445d-9f29-9ceff36d6119</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello Swapnil,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response. I was unwell over the weekend and just resumed work today, which caused the delay. I’m sorry if this caused any inconvenience.&lt;/p&gt;
&lt;p&gt;As my colleague explained, the error you&amp;#39;re encountering is related to the use of the &lt;code&gt;DEVICE_DT_GET_ONE&lt;/code&gt; macro in the code when building the sample for the nRF52840 Development Kit. The macro is expecting device tree nodes that might not be properly defined for the nRF52840DK.&lt;/p&gt;
&lt;p&gt;To be more precise, the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/sensor/lsm6dso/src/main.c#L111"&gt;&lt;code&gt;DEVICE_DT_GET_ONE(st_lsm6dso)&lt;/code&gt; macro&lt;/a&gt; is trying to fetch a device node for the LSM6DSO sensor from the device tree. If you review the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/sensor/lsm6dso#readme"&gt;README&lt;/a&gt;&amp;nbsp;of this sample, you&amp;#39;ll find that it is not supported out of the box for the nRF52840, as it was tested specifically for the STM32L562E-DK board. The STM32 board likely has this sensor enabled and configured by default in its device tree, but the nRF52840DK does not.&lt;/p&gt;
&lt;p&gt;To resolve this, you need to modify the device tree for the nRF52840DK to include the configuration for the LSM6DSO sensor over I2C. You can do this by creating or modifying an overlay file (refer to the one shared by my colleague).&lt;/p&gt;
[quote user="Nordic_Swapnil"]bro i was expecting little remote support , i can share my screen i did 6-7 attempts, just 20-25 min google meet call.[/quote]
&lt;p&gt;I’m afraid we don’t provide support this way. The only proper channel for support is via Devzone.&lt;/p&gt;
[quote user="Nordic_Swapnil"]Exercise 1 form lesson 6 in Fundamental course, it is too not working even after doing everything step by step,[/quote]
&lt;p&gt;I&amp;#39;m not sure what the issue with the DevAcademy lessons is. The lessons work properly for me. Since you haven&amp;#39;t provided any details on the error, I can&amp;#39;t comment on the issue you&amp;#39;re experiencing. You might want to refer to the&lt;a href="https://github.com/NordicDeveloperAcademy"&gt; solution provided for the particular exercise&lt;/a&gt;. Check the solution and ensure you have followed all the steps correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example of LSM6DS not compilng</title><link>https://devzone.nordicsemi.com/thread/505213?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 14:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ce363c-9dd6-44c9-9d50-66939df6af0d</guid><dc:creator>Nordic_Swapnil</dc:creator><description>&lt;p&gt;bro i was expecting little remote support , i can share my screen i did 6-7 attempts, just 20-25 min google meet call. i&amp;nbsp; was stuck there 3 days ago, just errors are changing but it isnt compiling(building),&amp;nbsp;&lt;br /&gt;last recent logs it shows boilarplate.....&lt;/p&gt;
&lt;p&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)&lt;br /&gt; C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:4 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;&lt;br /&gt;Exercise 1 form lesson 6 in Fundamental course, it is too not working even after doing everything step by step,&lt;br /&gt;Even from Kconfig GUI its not allowing to enable LSM6DSO ,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;pls let me know, whenever&amp;nbsp; you are available..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example of LSM6DS not compilng</title><link>https://devzone.nordicsemi.com/thread/505086?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 05:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49725f9-4684-40ae-bd83-1b239ccf2568</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The error in your log clearly mentions that the device tree entry is missing for your sensor.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: LSM6DSO (defined at drivers/sensor/lsm6dso/Kconfig:6) was assigned the value &amp;#39;y&amp;#39; but got
the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: DT_HAS_ST_LSM6DSO_ENABLED (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LSM6DSO and/or look up LSM6DSO in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If this error is not very obvious for you then I recommend you to read&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/" rel="noopener noreferrer" target="_blank"&gt;nRF Connect SDK Intermediate course&lt;/a&gt;&lt;span&gt;, Lesson 2 - Debugging, provides a section on&amp;nbsp;&lt;/span&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/troubleshooting-the-devicetree/" rel="noopener noreferrer" target="_blank"&gt;Troubleshooting the devicetree&lt;/a&gt;&lt;span&gt;. It discusses common errors you might face while working with the devicetree.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;To add the LSM6DSO sensor to the device tree of the nRF52 DK, you need to modify the device tree source (DTS) file for your board. The DTS file is usually located in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;boards&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory of your Zephyr project.&lt;/div&gt;
&lt;div&gt;Here is an example of how you might add the LSM6DSO sensor to the I2C bus:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c0 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;

    lsm6dso@6a {
        compatible = &amp;quot;st,lsm6dso&amp;quot;;
        reg = &amp;lt;0x6a&amp;gt;;
        irq-gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_HIGH&amp;gt;;
        status = &amp;quot;okay&amp;quot;;
    };
};&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Please use the above for reference only and you need to adjust the value of the gpio number used for irq-gpios which matches your setup.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;There are also a lot of undefined symbols you tried to define in the prj.conf, not sure where you got those values from?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I recommend you start with&amp;nbsp;ncs\2.7.0\zephyr\samples\sensor\lsm6dso, add the device tree node as above in the device overlay file and go from there.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>