<?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>bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85694/bmi160-zephyr-sensor-driver-nrf5340</link><description>Hi, 
 I have problem to use bmi160 library with nrf5340 in spi connection. 
 I use the example application zephyr/samples/sensor/adxl372 and change the sensor to bmi160 ( with zephyr driver). 
 
 device_is_ready ( dev ) is always not ready. Can some one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 13:56:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85694/bmi160-zephyr-sensor-driver-nrf5340" /><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/360341?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 13:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8f1c6a-9c06-428b-9fe2-df4c2cddbffa</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Something else to try is changing &lt;code&gt;int-gpios = &amp;lt;&amp;amp;gpio0 20 0&amp;gt;;&lt;/code&gt; to some other pin than P0.20 as this pin seems to be already occupied by uart0 tx_pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/360120?ContentTypeID=1</link><pubDate>Sun, 27 Mar 2022 09:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f14ced60-f344-4617-8ab1-22ff78b0ad2c</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi szhai lai, sorry for the long delay.&lt;/p&gt;
&lt;p&gt;Have you had any look at the SPI signals? Is there any activity at all? Would you be able to share a trace from an oscilloscope?&lt;/p&gt;
&lt;p&gt;Would you be able to share an image of your setup?&lt;/p&gt;
&lt;p&gt;You could also try lowering the clock frequency for SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/358077?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 20:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:591aaf51-ad68-4687-a879-3dc350042c3e</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for sharing your project. I will take a look tomorrow and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/357785?ContentTypeID=1</link><pubDate>Sat, 12 Mar 2022 16:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec7feaa-c13d-4297-bb7f-60823581bd4e</guid><dc:creator>szhaulai</dc:creator><description>&lt;p&gt;I attach the project in case I missed other information.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0066.adxl372.zip"&gt;devzone.nordicsemi.com/.../0066.adxl372.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/357783?ContentTypeID=1</link><pubDate>Sat, 12 Mar 2022 16:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f49ec19-7710-4b0a-868b-ddfe5b654db9</guid><dc:creator>szhaulai</dc:creator><description>&lt;p&gt;Hi, I forget to mention that I use nrf5340dk board. In that case, SPI2 pin is defined in the&amp;nbsp;nrf5340_cpuapp_common.dts file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed 76 to 0 but it doesn&amp;#39;t make any difference.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;One thing I recognized from the&amp;nbsp; example you provided, CONFIG_SPI_1=y is presented in prj.conf, which is not configured in my setup.&lt;/p&gt;
&lt;p&gt;However, when I add CONFIG_SPI_2=y to my prj.conf(I use SPI2), which gives&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol SPI_2&amp;quot;&amp;nbsp; &amp;nbsp; and&amp;nbsp; &amp;nbsp;&amp;quot;error: Aborting due to Kconfig warnings&amp;quot;&lt;/p&gt;
&lt;p&gt;(I use visual studio to compile instead of segger, I don&amp;#39;t know if it gives different result)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bmi160 zephyr sensor driver + nrf5340</title><link>https://devzone.nordicsemi.com/thread/357725?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:26:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a4ce086-c784-41c1-94ee-913c7b6ea6d7</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The first thing I notice is that your overlay needs a few changes. I found another case where an overlay was specified for BMI160. I am not sure whether they got it right, however, it might provide you with a few hints :&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73433/bmi160-sample-on-custom-nrf9160"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73433/bmi160-sample-on-custom-nrf9160&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;You will need to specify the pins for the SPI interface. Also you do not need the address &amp;#39;76&amp;#39;. Also replace &amp;#39;76&amp;#39; with &amp;#39;0&amp;#39;.&lt;/p&gt;
&lt;p&gt;I will take a closer look next week.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>