<?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>Getting some of the configuration options switched on in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84375/getting-some-of-the-configuration-options-switched-on-in-zephyr</link><description>This might not be the optimal forum for this question, but I&amp;#39;m not sure where else to post it. I have a (I think) very simple question about configuring Zephyr. 
 I have a LIS2DH sensor hooked up to my nRF9160 DK. I can get the sensor example from Zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Feb 2022 14:40:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84375/getting-some-of-the-configuration-options-switched-on-in-zephyr" /><item><title>RE: Getting some of the configuration options switched on in Zephyr</title><link>https://devzone.nordicsemi.com/thread/351165?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 14:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68abe9fc-3187-433a-b0ec-dd2bb4808e80</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try setting&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/d143ae93cabf2979b4bc3d049145e108a7d7adcf/drivers/sensor/lis2dh/Kconfig#L23"&gt;CONFIG_LIS2DH_TRIGGER_GLOBAL_THREAD&lt;/a&gt;=y or &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/d143ae93cabf2979b4bc3d049145e108a7d7adcf/drivers/sensor/lis2dh/Kconfig#L28"&gt;CONFIG_LIS2DH_TRIGGER_OWN_THREAD&lt;/a&gt;=y in the prj.conf file (only one of them) instead.&lt;/p&gt;
&lt;p&gt;They will then set CONFIG_LIS2DH_TRIGGER=y through the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/guides/build/kconfig/tips.html#select-statements"&gt;select statement&lt;/a&gt;&amp;nbsp;(see&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/d143ae93cabf2979b4bc3d049145e108a7d7adcf/drivers/sensor/lis2dh/Kconfig#L26"&gt;zephyr/drivers/sensor/lis2dh/Kconfig#L26&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/support-private/support/283641/zephyr/drivers/sensor/lis2dh/Kconfig#L31"&gt;zephyr/drivers/sensor/lis2dh/Kconfig#L31&lt;/a&gt;).&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;All &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/guides/build/kconfig/tips.html#:~:text=symbols%20without%20prompts%20can%E2%80%99t%20be%20configured%20directly%20by%20the%20user"&gt;configurations without a prompt is not directly configurable&lt;/a&gt;, for example&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/d143ae93cabf2979b4bc3d049145e108a7d7adcf/drivers/sensor/lis2dh/Kconfig#L35-L36"&gt;the config LIS2DH_TRIGGER has no text associated with it&lt;/a&gt;&amp;nbsp;unlike the LIS2DH_TRIGGER_GLOBAL_THREAD for example, which has the text &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/d143ae93cabf2979b4bc3d049145e108a7d7adcf/drivers/sensor/lis2dh/Kconfig#L24"&gt;&amp;quot;Use global thread&amp;quot;&lt;/a&gt; associated with it.&lt;/p&gt;
&lt;p&gt;The way I found this out was to search for &amp;quot;select LIS2DH_TRIGGER&amp;quot; in the whole NCS using VS code. You can also look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/kconfig/CONFIG_LIS2DH_TRIGGER.html"&gt;Kconfig reference for CONFIG_LIS2DH_TRIGGER&lt;/a&gt;, which tells you what Kconfigs to set instead:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x300/__key/communityserver-discussions-components-files/4/pastedimage1643899484498v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>