<?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>Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100466/custom-board-nrf9160---lis2dh-driver</link><description>Good day 
 I am attempting to add the LID2DH driver to my lwm2m standard sample. My board files look like this: 
 
 
 &amp;amp; i2c1 { 
 compatible = &amp;quot;nordic,nrf-twim&amp;quot; ; 
 status = &amp;quot;okay&amp;quot; ; 
 
 pinctrl-0 = &amp;lt; &amp;amp; i2c1_default &amp;gt;; 
 pinctrl-1 = &amp;lt; &amp;amp; i2c1_sleep &amp;gt;; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 13:16:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100466/custom-board-nrf9160---lis2dh-driver" /><item><title>RE: Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/thread/429569?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 13:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032c3b03-03a8-49a6-afdf-c445a4601d24</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi Achim !&lt;/p&gt;
&lt;p&gt;Thank you for the reply! it is a custom board based on that.&amp;nbsp; This morning after I switched on my pc, I ran a pristine build on the code and it compiled perfectly.&amp;nbsp; Not sure why this happened but I can use the driver now.&lt;/p&gt;
&lt;p&gt;I enabled it in prj.conf.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/thread/429448?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 04:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa128b0f-fdfb-4b2d-8829-4f800ef1cb76</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Is it a &amp;quot;sparkfun_thing_plus_nrf9160&amp;quot; or a custom board based on that?&lt;/p&gt;
&lt;p&gt;Which NCS version you are using?&lt;/p&gt;
&lt;p&gt;How do you enable &lt;span&gt;CONFIG_LIS2DH&lt;/span&gt;? In a board config? prj.conf? CLI? C-header?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/thread/429355?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 14:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:602ea8a2-8c61-4fd4-91fe-00717bb9ff29</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	model = &amp;quot;Brick V1&amp;quot;;
	compatible = &amp;quot;***************&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		 red_led: led_1 {
			 gpios = &amp;lt;&amp;amp;gpio0 21 0&amp;gt;;
			 label = &amp;quot;RGB red channel&amp;quot;;
		 };
		 green_led: led_2 {
			 gpios = &amp;lt;&amp;amp;gpio0 22 0&amp;gt;;
			 label = &amp;quot;RGB green channel&amp;quot;;
		 };
		 blue_led: led_3 {
			 gpios = &amp;lt;&amp;amp;gpio0 23 0&amp;gt;;
			 label = &amp;quot;RGB blue channel&amp;quot;;
		 };

	
	};




	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		 button0: button_0 {
			 gpios = &amp;lt;&amp;amp;gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			 label = &amp;quot;Switch 1&amp;quot;;
		 };
	};

	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;red_led;
		 led1 = &amp;amp;green_led;
		 led2 = &amp;amp;blue_led;
		
		 sw0 = &amp;amp;button0;
		 mcuboot-button0 = &amp;amp;button0;
		 mcuboot-led0 = &amp;amp;blue_led;
		 watchdog0 = &amp;amp;wdt0;
		 accel0 = &amp;amp;lis2dh;
		 spi-flash0 = &amp;amp;w25q32jv;
		 
	};
	
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};
// Terminal
&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	
};
// Modbus
&amp;amp;uart2 {
	status = &amp;quot;disabled&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	modbus0 {
		compatible = &amp;quot;zephyr,modbus-serial&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		de-gpios = &amp;lt; &amp;amp;gpio0 2 GPIO_ACTIVE_LOW&amp;gt;;	/* D9 */
		re-gpios = &amp;lt; &amp;amp;gpio0 3 GPIO_ACTIVE_HIGH&amp;gt;;
	};
};

// Dongle

&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;9600&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};



&amp;amp;i2c2 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;

	pinctrl-0 = &amp;lt;&amp;amp;i2c2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	pcf85063a@51 {
		compatible = &amp;quot;nxp,pcf85063a&amp;quot;;
		reg = &amp;lt;0x51&amp;gt;;
	};

	lis2dh: lis2dh@18 {
		status = &amp;quot;okay&amp;quot;;
		compatible = &amp;quot;st,lis2dh&amp;quot;;
		reg = &amp;lt;0x18&amp;gt;;
		irq-gpios = &amp;lt;&amp;amp;gpio0 4 GPIO_ACTIVE_HIGH&amp;gt;;
		disconnect-sdo-sa0-pull-up;
		anym-on-int1;
	};

};


&amp;amp;spi3 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_LOW&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	w25q32jv: w25q32jv@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;40000000&amp;gt;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 10 GPIO_ACTIVE_LOW&amp;gt;;
		size = &amp;lt;0x2000000&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt;3000&amp;gt;;
		t-exit-dpd = &amp;lt;30000&amp;gt;;
		jedec-id = [ ef 40 16 ];
	};
};

&amp;amp;timer0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;timer1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;timer2 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x00000000 0x10000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
		};
		slot0_ns_partition: partition@40000 {
			label = &amp;quot;image-0-nonsecure&amp;quot;;
		};
		slot1_partition: partition@80000 {
			label = &amp;quot;image-1&amp;quot;;
		};
		slot1_ns_partition: partition@b0000 {
			label = &amp;quot;image-1-nonsecure&amp;quot;;
		};
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x000f0000 0xa000&amp;gt;;
		};
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000fa000 0x00006000&amp;gt;;
		};
	};
};

/ {

	reserved-memory {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;
		ranges;

		sram0_s: image_s@20000000 {
			/* Secure image memory */
		};

		sram0_bsd: image_bsd@20010000 {
			/* BSD (shared) memory */
		};

		sram0_ns: image_ns@20020000 {
			/* Non-Secure image memory */
		};
	};
};

/ {
	vbatt {
		compatible = &amp;quot;voltage-divider&amp;quot;;
		io-channels = &amp;lt;&amp;amp;adc 7&amp;gt;;
		output-ohms = &amp;lt;100000&amp;gt;;
		full-ohms = &amp;lt;(100000 + 100000)&amp;gt;;
		power-gpios = &amp;lt;&amp;amp;gpio0 25 0&amp;gt;;
	};
};

/* Include partition configuration file */
#include &amp;quot;sparkfun_thing_plus_nrf9160_partition_conf.dts&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These are my board files.&amp;nbsp; Please assist if possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/thread/429344?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 14:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af952848-3e8c-4834-9545-8d80e336eb1d</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Good day&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried that and still no success.&amp;nbsp; The lis2dh sample is able to work on the custom board.&amp;nbsp; However, the lwm2m sample doesn&amp;#39;t allow it.&amp;nbsp; Could my bindings still be a problem ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board nrf9160 - lis2dh driver</title><link>https://devzone.nordicsemi.com/thread/429282?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d21f40-a41b-4cb8-8001-74762fe0b390</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try running this on i2c2? You may be running into some issues due to i2c1 sharing resources with uart1, and uart1 is used by default for TFM logging in non-secure builds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>