<?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>Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101329/zephyr-spi-master-timeout--etimeout</link><description>I&amp;#39;ve got a SPI slave device connected to my Laird BL652 (based on the nRF52832). The slave requires the following transaction on the SPI bus: 
 
 Note that the total transaction size is 16 bits. 
 The SPI section of the module&amp;#39;s dts file looks like this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jun 2023 12:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101329/zephyr-spi-master-timeout--etimeout" /><item><title>RE: Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/thread/433937?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 12:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d5705c-ebe2-4de1-bd21-a41e7c4acdf4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try the attached project and see if it&amp;nbsp;works. It includes an overlay for the &amp;#39;bl652_dvk&amp;#39; board.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3122.spi.zip"&gt;devzone.nordicsemi.com/.../3122.spi.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/thread/433800?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 22:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f26ecb01-016b-4733-8c70-4fe202aeb0dd</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;I put a message up on the Zephyr Discord SPI discussion looking for some SPI code for the nRF52832. No reply yet. I still think the best is to modify the nRF52840 code to work on the 832, but I&amp;#39;m not sure how to do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/thread/433789?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 20:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4931e0d9-3cd4-4119-9ff5-e4ba24a02e74</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;I figured out why the device tree provided in the tool chain doesn&amp;#39;t work - it&amp;#39;s not supposed to. Laird, the manufacturer, hasn&amp;#39;t rolled out support for SPI on that module. What&amp;#39;s in the provided device tree is just a placeholder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There _is_ a SPI device tree for the BL654, which uses the&amp;nbsp;nRF52840 chip. This device tree looks a lot like the example you gave, which is also for the&amp;nbsp;&lt;span&gt;nRF52840.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it possible that Zephyr SPI for the nRF52832 is simply not supported? Could I create the appropriate overlay to support my board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/thread/433782?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 18:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6ec76a-1133-4ee0-b0dc-f0434d6b0076</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;I copied the example main.c and overlay files into a fresh project based on the Hello_world template and created a build configuration for my blk652 module (based on the nRF52832 chip). When I did the build, I got the following error:&lt;/p&gt;
&lt;p&gt;devicetree error: c:/Nordic/VS_Code/SPI_test/bl652_dvk.overlay:39 (column 16): parse error: undefined node label &amp;#39;spi3&amp;#39;&lt;/p&gt;
&lt;p&gt;I also notice that the &amp;quot;low-power&amp;quot; tag does not exist in&amp;nbsp;&lt;span&gt;&amp;quot;nordic,nrf-pinctrl:child:child&amp;quot;. And there is no compatible property for&amp;nbsp;&lt;span class="mtk17"&gt;spi-dev-a&lt;/span&gt;&lt;span class="mtk3"&gt;@&lt;/span&gt;&lt;span class="mtk7"&gt;0.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;How should I modify the overlay to fix this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr SPI master timeout (-ETIMEOUT)</title><link>https://devzone.nordicsemi.com/thread/433747?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 15:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c637e18-c778-414e-a535-bc82e617c040</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Your I2C slave should be defined as a child node to your SPI peripheral because the &amp;#39;operation&amp;#39; flags are meant to be configured individually for each device on the bus.&amp;nbsp;Same as&amp;nbsp;what my coworker Torbj&amp;oslash;rn&amp;nbsp;did in his SPI example here:&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example/blob/master/nrf52840dk_nrf52840.overlay#L46"&gt;https://github.com/too1/ncs-spi-master-slave-example/blob/master/nrf52840dk_nrf52840.overlay#L46&lt;/a&gt;. You can also see how he initializes the&amp;nbsp;spi_dt_spec struct here:&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example/blob/master/src/main.c#L43C32-L43C39"&gt;https://github.com/too1/ncs-spi-master-slave-example/blob/master/src/main.c#L43C32-L43C39&lt;/a&gt;. You can also&amp;nbsp;use the SPI_DT_SPEC_GET(DT_NODELABEL((&amp;lt;spi bus node&amp;gt;)) helper macro.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>