<?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>Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79753/migrating-from-nrf5_sdk-to-nrf-connect-sdk</link><description>Hello, 
 I am migrating code from nrf5_SDK_17.0.2 to nrf connect sdk v1.6.1. The board i am using is nrf52dk(nrf52832) connected with adafruit LSM6DSO. 
 Everything works fine on nrf5_SDK which based on modified example twi_sensor. But when I run lsm6dso</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Sep 2021 11:10:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79753/migrating-from-nrf5_sdk-to-nrf-connect-sdk" /><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/331049?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 11:10:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f510aab5-c292-45f2-b397-b229cae7ea07</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello again,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I got some feedback from our development team:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span lang="en-GB"&gt;T&lt;/span&gt;&lt;span lang="en-GB"&gt;here is a &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/38678/files"&gt;commit&lt;/a&gt; in Zephyr that adds a possibility to handle flash-located buffers to i2c.&amp;nbsp;&lt;/span&gt;&lt;span lang="en-GB"&gt;However, I’m not quite sure yet in which NCS release this will be included.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Handling DSP310 requires an extra entry in the devicetree that creates an additional buffer in RAM for a specific i2c instance: &lt;em&gt;flash-buf-max-size&lt;/em&gt;; so still an action is required from the DPS310 driver user prior to using it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Markus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/331017?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 09:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b0fdc02-fa51-4f4c-a566-c5351075a5bf</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="kclauah"]&lt;p&gt;And the suggestion from @anangl works for me.&lt;/p&gt;
&lt;p&gt;How can I report a bug here?&lt;/p&gt;[/quote]
&lt;p lang="en-GB"&gt;Thanks for the feedback! I’m glad to hear you could solve the issue. I will report this internally.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330757?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 07:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ffb0c4-acd1-4390-9b70-88e8e1108774</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Hello Markus,&lt;/p&gt;
&lt;p&gt;I think I found the root cause.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/35550#issuecomment-847745043"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/35550#issuecomment-847745043&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the suggestion from @anangl works for me.&lt;/p&gt;
&lt;p&gt;How can I report a bug here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330403?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 08:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7302a3a9-f0fd-43df-b6b7-07a81cfe682f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello,&lt;/p&gt;
[quote user="kclauah"]I still cannot understand why I2C driver does not try to write on SDA pin and directly jump to error code.[/quote]
&lt;p lang="en-GB"&gt;This is really hard to tell without any more input from your application. But normally Zephyr throws an EIO if the devicetree configuration is not completely correct.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Unfortunately, I’m not able to test this on my side, since I do not have a DPS310 available. But I have tested the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/samples/sensor/bme680/README.html#bme680-integrated-environmental-sensor"&gt;BME680&lt;/a&gt; sample with my Thingy:91 and that works fine. Now, the sample does not use exactly the same &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/drivers/sensor/bme680/bme680.c#L349"&gt;I2C API&lt;/a&gt; as for the DPS310, so I can not exclude that their might be an issue with the sample itself.&lt;/p&gt;
[quote user="kclauah"]Can you give me a suggestion on how to create a new sensor driver? Because everything works fine on nRF5_SDK.[/quote]
&lt;p lang="en-GB"&gt;My approach would have been to get the provided Zephyr sample to work with your board and sensor first, before taking any further steps.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330367?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 02:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d313403e-d7cf-4e62-9f23-f58c0d3e654f</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Can you give me a suggestion on how to create a new sensor driver? Because everything works fine on nRF5_SDK.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330365?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 01:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd37fc3a-f67c-4361-aefa-18d3e01306d6</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Hello Markus,&lt;/p&gt;
&lt;p&gt;&amp;quot;... but the error often occurs when there are configuration mismatches.&amp;quot;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think so because I can get the chip ID correctly. Which means&lt;/p&gt;
&lt;p&gt;1. The device is working.&lt;/p&gt;
&lt;p&gt;2. The connection is correct(pin, I2C address, power...)&lt;/p&gt;
&lt;p&gt;3. The initialization code is correct because it is written by manufacturer(tested both ST and Infineon).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still cannot understand why I2C driver does not try to write on SDA pin and directly jump to error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330272?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 11:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c3f1797-5f35-484a-9bdb-8505fc5ba383</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="kclauah"]What does Error I/O means?[/quote]
&lt;p lang="en-GB"&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/lib/libc/minimal/include/errno.h#L44"&gt;EIO&lt;/a&gt; can basically mean anything ;-) Unfortunately&amp;nbsp;this&amp;nbsp;does not help too much, but the error often occurs when there are configuration mismatches.&lt;/p&gt;
[quote user="kclauah"]The oscilloscope does not even triggered with command i2c_write_read(data-&amp;gt;i2c_master, config-&amp;gt;i2c_addr,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;REG_ADDR_CALIB_COEFF_0, 1, &amp;amp;raw_coef, 18); and return -EIO[/quote]
&lt;p lang="en-GB"&gt;I assume you are referring to this &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/drivers/sensor/dps310/dps310.c#L611"&gt;function&lt;/a&gt;?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Can you please provide me with the content of .&lt;em&gt;./zephyr/samples/sensor/dps310/&amp;lt;your build folder&amp;gt;/zephyr/zephyr.dts&lt;/em&gt;?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Thanks and regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330205?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 09:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8effddce-b6a8-4116-a8be-297b4b630c8d</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Hello Markus,&lt;/p&gt;
&lt;p&gt;&amp;quot;Does the sample work with your sensor and DK?&amp;quot;&lt;/p&gt;
&lt;p&gt;No. The sample does not work and I am using &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/samples/sensor/dps310/src/main.c#L14"&gt;../zephyr/samples/sensor/dps310&lt;/a&gt; example for testing.&lt;/p&gt;
&lt;p&gt;The oscilloscope does not even triggered with command i2c_write_read(data-&amp;gt;i2c_master, config-&amp;gt;i2c_addr,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;REG_ADDR_CALIB_COEFF_0, 1, &amp;amp;raw_coef, 18); and return -EIO&lt;/p&gt;
&lt;p&gt;What does Error I/O means?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330203?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 09:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f24bc04-161a-426a-bb00-a31d4765f090</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello,&lt;/p&gt;
[quote user="kclauah"]Hello, today I have tested other manufacturer sensor (Infineon DPS310) and similar problem appears.[/quote]
&lt;p lang="en-GB"&gt;could you please try the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/samples/sensor/dps310/README.html#dps310-temperature-and-pressure-sensor"&gt;DPS310&lt;/a&gt; application, located in &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/samples/sensor/dps310/src/main.c#L14"&gt;../zephyr/samples/sensor/dps310&lt;/a&gt;?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Does the sample work with your sensor and DK?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330160?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 07:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc760132-2641-4675-a5dd-0b013abf1e88</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Hello, today I have tested other manufacturer sensor (Infineon DPS310) and similar problem appears.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On one hand, nrf52832 read register correctly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	int res = i2c_reg_read_byte(data-&amp;gt;i2c_master, config-&amp;gt;i2c_addr,
				 IFX_DPS310_REG_ADDR_PRODUCT_ID, &amp;amp;product_id);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/dps310_5F00_ask.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/dps310_5F00_response.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the other hand, it does not generate waveform when read and write register.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	res = i2c_write_read(data-&amp;gt;i2c_master, config-&amp;gt;i2c_addr,
			     &amp;amp;REG_ADDR_CALIB_COEFF_0, 1, &amp;amp;raw_coef, 18);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. The above are calling the same command i2c_write_read. I think something is wrong with I2C and nordic twim library because it is impossible that both example code from two different manufacturers do not work.&lt;/p&gt;
&lt;p&gt;2. I have found similar problem on devzone: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74704/dps310-zephyr-example-not-working-with-the-nrf9160-sdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/74704/dps310-zephyr-example-not-working-with-the-nrf9160-sdk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is he able to tackle this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330138?ContentTypeID=1</link><pubDate>Sun, 19 Sep 2021 13:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d016ab-82b5-478a-9ec6-7e17a15f825c</guid><dc:creator>kclauah</dc:creator><description>&lt;p&gt;Hello Markus,&lt;/p&gt;
&lt;p&gt;Thank you so much for responding. I can confirm that the device is properly binded because the device pointer does not return NULL. But I have few questions as follow.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. LSM6DSO contains a set of registers to control sensor behavior.&lt;/p&gt;
&lt;p&gt;What I does in nRF5_SDK looks like the following,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    uint8_t reg[2] = {0x10, 0b00010000};
    nrf_drv_twi_xfer_desc_t xfer = NRF_DRV_TWI_XFER_DESC_TX(0x6a, reg, sizeof(reg));
    err_code = nrf_drv_twi_xfer(&amp;amp;m_twi, &amp;amp;xfer, 0);
    APP_ERROR_CHECK(err_code);
    while (m_xfer_done == false);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How can I achieve the same effect using the high level &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/peripherals/sensor.html#sensors"&gt;Sensor API&lt;/a&gt; or low level &lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html"&gt;I2C API&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. What is wrong with the following code? It is hard to debug as it crashes without any error code. I think the code should be corrected by following the &lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html#c.i2c_reg_write_byte"&gt;readme&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/hard_5F00_fault_5F00_i2c_5F00_byte_5F00_write.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // @brief Write internal register of an I2C device.
    //
    // @param dev       Pointer to the device structure for an I2C controller driver configured in master mode. 
    // @param dev_addr  Address of the I2C device for writing.
    // @param reg_addr  Address of the internal register being written.
    // @param value     Value to be written to internal register.
    
    int ret = i2c_reg_write_byte(dev, 0x6a, 0x10, 0x10);
    if (ret &amp;lt; 0){
        printf(&amp;quot;cannot i2c_burst_write&amp;quot;);
    }else {
        printf(&amp;quot;custom i2c_burst_write&amp;quot;);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2021-09-20T03:14:23.225Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
2021-09-20T03:14:24.666Z DEBUG modem &amp;lt;&amp;lt; Testing LSM6DSO sensor in polling mode.
2021-09-20T03:14:25.584Z DEBUG modem &amp;lt;&amp;lt; [00:00:00.320,770] [0m&amp;lt;inf&amp;gt; LSM6DSO: chip id 0x6c[0m
2021-09-20T03:14:25.609Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,612] [1;31m&amp;lt;err&amp;gt; os: ***** USAGE FAULT *****[0m
2021-09-20T03:14:25.641Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,612] [1;31m&amp;lt;err&amp;gt; os:   Illegal use of the EPSR[0m
2021-09-20T03:14:25.673Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,612] [1;31m&amp;lt;err&amp;gt; os: r0/a1:  0x200000d8  r1/a2:  0x200010fc  r2/a3:  0x00000001[0m
2021-09-20T03:14:25.716Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,643] [1;31m&amp;lt;err&amp;gt; os: r3/a4:  0x0000006a r12/ip:  0x0000000a r14/lr:  0x00001621[0m
2021-09-20T03:14:25.758Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,643] [1;31m&amp;lt;err&amp;gt; os:  xpsr:  0x00000000[0m
2021-09-20T03:14:25.786Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,643] [1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000000[0m
2021-09-20T03:14:25.822Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,643] [1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0[0m
2021-09-20T03:14:25.859Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.690,643] [1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20000250 (unknown)[0m
2021-09-20T03:14:25.890Z DEBUG modem &amp;lt;&amp;lt; [00:00:02.997,009] [1;31m&amp;lt;err&amp;gt; fatal_error: Resetting system[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/peripherals/sensor.html#sensors"&gt;Sensor API&lt;/a&gt; looks good that abstract sensor sampling. I would try this after sensor reporting the correct sensor readings.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-- Updated the hard fault debug message&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from nrf5_SDK to nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/330012?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3fc0718-5d0a-4edc-8eac-96fe7fab8888</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I refer to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/samples/sensor/lsm6dso/README.html#lsm6dso-imu-sensor-monitor"&gt;LSM6DSO: IMU Sensor Monitor&lt;/a&gt; sample of Zephyr.&lt;/p&gt;
&lt;p lang="en-GB"&gt;If you add the sensor via the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/guides/dts/index.html#devicetree-guide"&gt;devicetree&lt;/a&gt; (which I by the way recommend you do via an &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/guides/dts/howtos.html#use-devicetree-overlays"&gt;overlay file&lt;/a&gt; and not directly in the .dts), you have to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/peripherals/sensor.html#sensors"&gt;Sensor API&lt;/a&gt;. One fundamental step is to bind the device probably, as shown &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6-branch/samples/sensor/lsm6dso/src/main.c#L118"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you :-)&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>