<?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>Problem with LIS2DH12 connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115995/problem-with-lis2dh12-connection</link><description>Hi. 
 I am working on a custom nRF52810 board (SDK 2.7.0). 
 When connecting LIS2DH12 via SPI in the .dts file, I see an error --&amp;gt; 
 
 .dts code --&amp;gt; 
 
 prj.conf --&amp;gt; 
 
 Please help me solve this problem. 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2024 17:40:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115995/problem-with-lis2dh12-connection" /><item><title>RE: Problem with LIS2DH12 connection</title><link>https://devzone.nordicsemi.com/thread/508713?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 17:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5431f672-fc12-41f0-923a-19b8006cb736</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="backstreet.devisor"]But the error in the prj.conf file when CONFIG_LIS2DH=y is enabled is still there.&amp;nbsp;[/quote]
&lt;p&gt;Do you need it? &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/sensor/lis2dh/prj.conf"&gt;Looking at the LIS2DH sample&lt;/a&gt; it is not set in the prj.conf of this sample. In this sample they use only CONFIG_I2C and CONFIG_SENSOR, I would think that you will only need to change to CONFIG_SPI instead of I2C.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with LIS2DH12 connection</title><link>https://devzone.nordicsemi.com/thread/508695?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 15:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3959a3c7-8363-47e0-a062-bae7e0bdf9cf</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi &amp;Oslash;yvind. Thanks for your help.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yeah, that helped.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/new-lis-conf.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But the error in the prj.conf file when CONFIG_LIS2DH=y is enabled is still there.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;CONFIG_LIS2DH was assigned the value y, but got the value n. Missing dependencies:&lt;br /&gt;DT_HAS_ST_LIS2DH_ENABLED&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How do I fix it?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with LIS2DH12 connection</title><link>https://devzone.nordicsemi.com/thread/508691?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 14:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8390829-904c-4fa8-9b30-633ad3973e90</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the drivers for the&amp;nbsp;&lt;span&gt;LIS2DH12, there seems to be driver for I2C.&amp;nbsp;&lt;code&gt;zephyr\dts\bindings\sensor\st,lis2dh12-i2c.yaml&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;What happens if you change&amp;nbsp;&lt;code&gt;compatible = &amp;quot;st,lis2dh12&amp;quot;;&lt;/code&gt; to&amp;nbsp;&lt;code&gt;compatible = &amp;quot;st,lis2dh&amp;quot;&lt;/code&gt;&amp;nbsp;using&amp;nbsp;&lt;code&gt;zephyr\dts\bindings\sensor\st,lis2dh-spi.yaml?&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>