<?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>LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113613/lis2dh-accelerometer-not-initializing-with-nrf5340-dk</link><description>Hi, I&amp;#39;m trying to read data from an LIS2DH accelerometer using the nRF5340 DK board. I have been able to build and flash my code to the board, but the terminal outputs, &amp;quot;Device not ready&amp;quot;, indicating that the sensor was not initialized properly. The code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2024 21:26:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113613/lis2dh-accelerometer-not-initializing-with-nrf5340-dk" /><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497529?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 21:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a8b074-0c69-4b50-b272-5174d8f78c18</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Yup that depends on your LIS2DH HW configuration.&lt;br /&gt;&lt;span&gt;As per LIS2DH12 datasheet, if the SD0 pin is connected to the supply voltage, the I2C address of the accelerometer will be 0x19 and not 0x18.&lt;br /&gt;&lt;br /&gt;Glad you got that figured out.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497447?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 08:49:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add66b6d-a3b1-47a5-a110-1c24836f7932</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad to hear that your issue has been resolved.&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: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497387?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 22:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a003ba9-0232-4f82-8cbd-725c808c8802</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;Issue fixed! It seemed the register had to be 0x19 and not 0x19 and the pin assignments were wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497380?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 18:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a93dbf6-746c-45e1-bf37-0e6e9a5287a8</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;Thank you for the reply! I have double checked that the I2C bus is enabled and configured. As far as I am aware the pinctrl settings are appropriate for my board. I can also confirm that the sensor connected to the I2C bus with the address 0x18, and the wiring is correct: VCC -&amp;gt;, GND -&amp;gt; GND, SDA -&amp;gt; P0.08, SCL -&amp;gt; 0.07. I spent some time working through the guide you sent, but I found that I already had most of the information they asked to include. Do&amp;nbsp; you think I could be missing something in the overlay file or in the devicetree that would stop the sensor from initializing?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Roddy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497340?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 12:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308b384b-3609-4ec6-97ca-0fece8bf8364</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="roddyb"]&amp;quot;Device not ready&amp;quot; indicating the sensor was not initialized properly in the code[/quote]
&lt;p&gt;The error message suggests that the sensor device specified in your code isn’t properly initialized or detected. Please ensure that the I2C bus (i2c2) is enabled and configured correctly. Verify that the pinctrl settings are appropriate for your hardware setup. Confirm that your sensor is connected to the I2C2 bus with the address 0x18, and double-check the wiring and connections.&lt;/p&gt;
&lt;p&gt;Please &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-1-6-2/"&gt;review this guide&lt;/a&gt; and ensure that you have followed all the steps mentioned.&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: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497228?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 18:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e26e125d-0b5e-4c02-95fb-372fb4c6109f</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;No worries! I am trying to read data from an LIS2DH accelerometer using the nRF5340 DK board. I was using to given LIS2DH application as a starting point. However, when I try to run the application the code outputs the message &amp;quot;Device not ready&amp;quot; indicating the sensor was not initialized properly in the code. Here is my code including the changes I made thanks to the previous replies by the community:&lt;/p&gt;
&lt;p&gt;main:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/drivers/sensor.h&amp;gt;

static void fetch_and_display(const struct device *sensor)
{
	static unsigned int count;
	struct sensor_value accel[3];
	struct sensor_value temperature;
	const char *overrun = &amp;quot;&amp;quot;;
	int rc = sensor_sample_fetch(sensor);

	++count;
	if (rc == -EBADMSG) {
		/* Sample overrun.  Ignore in polled mode. */
		if (IS_ENABLED(CONFIG_LIS2DH_TRIGGER)) {
			overrun = &amp;quot;[OVERRUN] &amp;quot;;
		}
		rc = 0;
	}
	if (rc == 0) {
		rc = sensor_channel_get(sensor,
					SENSOR_CHAN_ACCEL_XYZ,
					accel);
	}
	if (rc &amp;lt; 0) {
		printf(&amp;quot;ERROR: Update failed: %d\n&amp;quot;, rc);
	} else {
		printf(&amp;quot;#%u @ %u ms: %sx %f , y %f , z %f&amp;quot;,
		       count, k_uptime_get_32(), overrun,
		       sensor_value_to_double(&amp;amp;accel[0]),
		       sensor_value_to_double(&amp;amp;accel[1]),
		       sensor_value_to_double(&amp;amp;accel[2]));
	}

	if (IS_ENABLED(CONFIG_LIS2DH_MEASURE_TEMPERATURE)) {
		if (rc == 0) {
			rc = sensor_channel_get(sensor, SENSOR_CHAN_DIE_TEMP, &amp;amp;temperature);
			if (rc &amp;lt; 0) {
				printf(&amp;quot;\nERROR: Unable to read temperature:%d\n&amp;quot;, rc);
			} else {
				printf(&amp;quot;, t %f\n&amp;quot;, sensor_value_to_double(&amp;amp;temperature));
			}
		}

	} else {
		printf(&amp;quot;\n&amp;quot;);
	}
}

#ifdef CONFIG_LIS2DH_TRIGGER
static void trigger_handler(const struct device *dev,
			    const struct sensor_trigger *trig)
{
	fetch_and_display(dev);
}
#endif

int main(void)
{
	printf(&amp;quot;Hello world!\n&amp;quot;);
	const struct device *sensor = DEVICE_DT_GET_ANY(st_lis2dh);

	if (sensor == NULL) {
		printf(&amp;quot;No device found\n&amp;quot;);
		return 0;
	}
	if (!device_is_ready(sensor)) {
		printf(&amp;quot;Device %s is not ready\n&amp;quot;, sensor-&amp;gt;name);
		return 0;
	}

#if CONFIG_LIS2DH_TRIGGER
	{
		struct sensor_trigger trig;
		int rc;

		trig.type = SENSOR_TRIG_DATA_READY;
		trig.chan = SENSOR_CHAN_ACCEL_XYZ;

		if (IS_ENABLED(CONFIG_LIS2DH_ODR_RUNTIME)) {
			struct sensor_value odr = {
				.val1 = 1,
			};

			rc = sensor_attr_set(sensor, trig.chan,
					     SENSOR_ATTR_SAMPLING_FREQUENCY,
					     &amp;amp;odr);
			if (rc != 0) {
				printf(&amp;quot;Failed to set odr: %d\n&amp;quot;, rc);
				return 0;
			}
			printf(&amp;quot;Sampling at %u Hz\n&amp;quot;, odr.val1);
		}

		rc = sensor_trigger_set(sensor, &amp;amp;trig, trigger_handler);
		if (rc != 0) {
			printf(&amp;quot;Failed to set trigger: %d\n&amp;quot;, rc);
			return 0;
		}

		printf(&amp;quot;Waiting for triggers\n&amp;quot;);
		while (true) {
			k_sleep(K_MSEC(2000));
		}
	}
#else /* CONFIG_LIS2DH_TRIGGER */
	printf(&amp;quot;Polling at 0.5 Hz\n&amp;quot;);
	while (true) {
		fetch_and_display(sensor);
		k_sleep(K_MSEC(2000));
	}
#endif /* CONFIG_LIS2DH_TRIGGER */
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nrf5340dk_nrf5340_cpuapp.overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
			low-power-enable;
		};
	};

	i2c2_default: i2c2_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 7)&amp;gt;;
		};	
	};

	i2c2_sleep: i2c2_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};

	pwm0_default: pwm0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 25)&amp;gt;;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 25)&amp;gt;;
			low-power-enable;
		};
	};

	spi3_default: spi3_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 21)&amp;gt;;
		};
	};

	spi3_sleep: spi3_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 20)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 21)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nrf5340dk_nrf5340_cpuapp.dts:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include &amp;lt;nordic/nrf5340_cpuapp_qkaa.dtsi&amp;gt;
#include &amp;quot;nrf5340_cpuapp_common.dtsi&amp;quot;

/ {
	model = &amp;quot;Nordic NRF5340 DK NRF5340 Application&amp;quot;;
	compatible = &amp;quot;nordic,nrf5340-dk-nrf5340-cpuapp&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0_image;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		zephyr,sram-secure-partition = &amp;amp;sram0_s;
		zephyr,sram-non-secure-partition = &amp;amp;sram0_ns;
	};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&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;;
};

&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;;
	clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;

	pmic_main: npm1300@6b {
		compatible = &amp;quot;nordic,npm1300&amp;quot;;
		reg = &amp;lt;0x6b&amp;gt;;
		pmic_charger: charger {
			compatible = &amp;quot;nordic,npm1300-charger&amp;quot;;
			term-microvolt = &amp;lt;4150000&amp;gt;;
			term-warm-microvolt = &amp;lt;4000000&amp;gt;;
			current-microamp = &amp;lt;150000&amp;gt;;
			dischg-limit-microamp = &amp;lt;1000000&amp;gt;;
			vbus-limit-microamp = &amp;lt;500000&amp;gt;;
			thermistor-ohms = &amp;lt;10000&amp;gt;;
			thermistor-beta = &amp;lt;3380&amp;gt;;
			charging-enable;
		};
		regulators {
			compatible = &amp;quot;nordic,npm1300-regulator&amp;quot;;
			BUCK1 {
				regulator-min-microvolt = &amp;lt;1800000&amp;gt;;
				regulator-max-microvolt = &amp;lt;1800000&amp;gt;;
				regulator-boot-on;
			};
			BUCK2 {
				regulator-min-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-boot-on;
			};
		};
	};

	lis2dh: lis2dh@18 {
		compatible = &amp;quot;st,lis2dh&amp;quot;;
		reg = &amp;lt;0x18&amp;gt;;
		irq-gpios = &amp;lt;&amp;amp;gpio0 29 GPIO_ACTIVE_HIGH&amp;gt;;
		disconnect-sdo-sa0-pull-up;
	};

	eeprom0: eeprom@50 {
		/* 24CW160 (16 kbit eeprom) */
		/* 0x8000 config register not accessible! If required, set size to 64K */
		compatible = &amp;quot;atmel,at24&amp;quot;;
		reg = &amp;lt;0x50&amp;gt;;
		size = &amp;lt;DT_SIZE_K(2)&amp;gt;;
		pagesize = &amp;lt;32&amp;gt;;
		address-width = &amp;lt;16&amp;gt;;
		timeout = &amp;lt;5&amp;gt;;
	};
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_STDOUT_CONSOLE=y

# Adding I2C
CONFIG_I2C=y

# Add the accelerometer
CONFIG_SENSOR=y
CONFIG_LIS2DH=y
CONFIG_CBPRINTF_FP_SUPPORT=y

# newlibc for printing floats
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y


CONFIG_SERIAL=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497225?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 17:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f1f34b-b4d8-4768-929c-1e897bb8c2f3</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="roddyb"]I was able to run a basic SDK sample without any issues. However, I am still having some trouble reading data from the sensor. Do you know what the issue could be?[/quote]
&lt;p&gt;Sorry, I accidentally deleted one of your replies. Could you explain the issue a little more or provide the current status of your development? If there are any error logs or error messages, please share them as they will help in diagnosing the issue.&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: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496809?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 12:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e146a4bf-ba7c-4fb1-9302-d732f227b74e</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I wanted to let you know that I have been assigned to this case. I have reviewed the inputs provided by the community, and they appear to be good and relevant. If you are still encountering issues, please let me know, and I will be happy to look into it further.&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: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496733?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 22:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5cdfdf-4f2b-4c09-90d5-d689097b4a93</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Correct. Something is not quite right and preventing your main app to run properly.&lt;/p&gt;
&lt;p&gt;I would try taking a nordic SDK&amp;#39;s basic sample, build it for nRF53 DK and see if it helps.&lt;/p&gt;
&lt;p&gt;Could be UART not working, check baud rate, or code just hanging up due to misconfiguration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496732?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 22:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9ed8d28-c923-4582-b9c2-dd1108c61513</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;I removed&amp;nbsp;&lt;strong&gt;CONFIG_BOOTLOADER_MCUBOOT=y&amp;nbsp;&lt;/strong&gt;which removed the booting up statements from being displayed. I tried printing hello world at the start of main, but it did not display. So, there is probably something stopping the code from getting into main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496730?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a7a041-6318-44a3-b241-0ed2298644c4</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Does any other program work. for eg, printing hello world etc before testing the sensor to make sure main loop&amp;nbsp; is running or its stuck and same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496729?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f0b6859-488f-417c-9134-1c50c3549b27</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;also remove this line incase you have copied from my code:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Not needed for&amp;nbsp;&lt;span&gt;nRF5340 DK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Seems like your DK is stuck in the bootup sequence for some reason&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496726?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9702f6b0-8ce4-4e65-839b-0a992dc9cc8d</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;I added that to prj.conf but it says serial was already enabled, and the terminal output the same thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496725?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2941cdac-db85-48d0-843c-08578a9a8a1c</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Ok, if you not getting anything on the terminal means your serial is disabled?&lt;/p&gt;
&lt;p&gt;Is it?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;is&amp;nbsp;&lt;strong&gt;CONFIG_SERIAL=y&lt;/strong&gt; in the prj.conf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496723?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce5c736-92c2-485d-883f-1a3a93a4c4b8</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;Thank you for the quick response! I have implemented the changes you suggested and confirmed the sensor is getting power. The terminal is not outputting this and no data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK 3758bcbfa5cd ***&lt;br /&gt;I: Starting bootloader&lt;br /&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;br /&gt;I: Boot source: none&lt;br /&gt;I: Image index: 0, Swap type: none&lt;br /&gt;I: Bootloader chainload address offset: 0xc000&lt;br /&gt;I: Jumping to the first image slot&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you know what else the issue could be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496720?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8909797-d011-4028-b103-2c5d0f00181b</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Yup, the above code has been tested on SDK 2.6.x.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496719?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a4a611-5426-426b-a0cd-a87364021b1f</guid><dc:creator>roddyb</dc:creator><description>&lt;p&gt;FYI my SDK version is 2.6.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH Accelerometer not initializing with nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/496718?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 21:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda9a90d-2970-42dc-87c0-2be34cc754e7</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Have a look at my codebase here and see if you missing any configuration or settings&lt;br /&gt;&lt;a id="" href="https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus/accelerometer"&gt;https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus/accelerometer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is fully tested and verified on &lt;a href="https://conexiotech.com/"&gt;Conexio Stratus&lt;/a&gt; devices that have LIS2DH sensor onboard.&lt;/p&gt;
&lt;p&gt;I would also check if your I2C lines (SDA and SCL) are configured properly in the devices tree like here&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/Conexiotechnologies/conexio_stratus_pro_devicetree/blob/main/conexio_stratus_pro/conexio_stratus_pro_common-pinctrl.dtsi"&gt;https://github.com/Conexiotechnologies/conexio_stratus_pro_devicetree/blob/main/conexio_stratus_pro/conexio_stratus_pro_common-pinctrl.dtsi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then is your sensor getting power or not.&lt;/p&gt;
&lt;p&gt;If all checks out, then you should be good to go and sensor should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>