<?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>Failed to run LIS2DH sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123070/failed-to-run-lis2dh-sample</link><description>Hello, 
 Used environment: 
 
 Board: nrf9151dk_nrf9151_ns 
 SDK Toolchain: v3.0.2 
 IDE: Vscode 
 
 I&amp;#39;m trying to test the LIS2DH sample using the nrf9151DK and the STEVAL-MKI151V1. The wiring is as follow: 
 
 vdd_lis2dh vdd_dk (configured to 3.3V using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 20 Jul 2025 09:58:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123070/failed-to-run-lis2dh-sample" /><item><title>RE: Failed to run LIS2DH sample</title><link>https://devzone.nordicsemi.com/thread/542933?ContentTypeID=1</link><pubDate>Sun, 20 Jul 2025 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b95bcdf-e439-4b34-bcd3-f4ddce31df99</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;In general, a nRF91 has are 4 communication units, and you may use each for UART, I2C, or SPI. That&amp;#39;s referred by uart0, uart1, uart2, uart3 or i2c0,&amp;nbsp;i2c1,&amp;nbsp;i2c2,&amp;nbsp;i2c3&lt;/p&gt;
&lt;p&gt;The nRF9151-DK maps does units as default to (see nrf9151dk_nrf9151_common.dtsi):&lt;/p&gt;
&lt;p&gt;uart0: logging&lt;/p&gt;
&lt;p&gt;uart1: modem trace&lt;/p&gt;
&lt;p&gt;i2c2: sensors&lt;/p&gt;
&lt;p&gt;spi3: flash&lt;/p&gt;
&lt;p&gt;Also some GPIO are assigned by default (see nrf9151dk_nrf9151_common-pinctlr.dtsi):&lt;/p&gt;
&lt;p&gt;i2c2 has sda P0.30 and scl&amp;nbsp;P0.31&lt;/p&gt;
&lt;p&gt;uart1 has tx P0.29, rx P0.28, rts P0.16, cts P0.17&lt;/p&gt;
&lt;p&gt;it&amp;#39;s possible to change that, but the result must not end in conflicts.&lt;/p&gt;
&lt;p&gt;So, let me propose the you just use i2c2 with&amp;nbsp;sda P0.30 and scl&amp;nbsp;P0.31 (and also check the voltage for these GPIOs via the Board Configurator App (nRF for Desktop). That will be a easy way to check the&amp;nbsp;LIS2DH.&lt;/p&gt;
&lt;p&gt;If you then really want to change the defaults, please ensure, that the pins you want to use are really not bound to other devices. Though uart1 is used for modem traces, the tx/rx are already connected to the USB2serial. I&amp;#39;m not sure, if that&amp;#39;s a good idea to try to use them for i2c, that may interfere with the USB2serial.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to run LIS2DH sample</title><link>https://devzone.nordicsemi.com/thread/542908?ContentTypeID=1</link><pubDate>Fri, 18 Jul 2025 17:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd14b6a5-d626-4c2a-97c7-dc58948f9692</guid><dc:creator>rajeev</dc:creator><description>&lt;p&gt;Suggestion and try:&lt;br /&gt;If you are using&amp;nbsp;&lt;span&gt;uarte0-. make your&amp;nbsp;i2c1 so that it does have conflicts with the uart.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, I do not see&amp;nbsp;CONFIG_I2C=y in your prj.conf.&lt;br /&gt;I think it should be&amp;nbsp;CONFIG_I2C=y instead of&amp;nbsp;CONFIG_I2C_NRFX=y.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See how I have done here:&amp;nbsp;&lt;a id="" href="https://github.com/Conexiotechnologies/conexio-firmware-sdk/blob/main/boards/conexio/stratus_pro/conexio_stratus_pro_common.dtsi"&gt;https://github.com/Conexiotechnologies/conexio-firmware-sdk/blob/main/boards/conexio/stratus_pro/conexio_stratus_pro_common.dtsi&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using&amp;nbsp;uart0 so my i2c is&amp;nbsp;&amp;amp;i2c2.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>