<?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>SPI Communication SDK 2.4.0 nRF5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113818/spi-communication-sdk-2-4-0-nrf5340-dk</link><description>Hello, 
 I want to operate a rather complex spi sensor with the nrf5340. To do that, I wanted to first establish spi communication. I started by creating a hello world example and then implementing the steps explained in the spi API tutorial. This is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2024 19:36:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113818/spi-communication-sdk-2-4-0-nrf5340-dk" /><item><title>RE: SPI Communication SDK 2.4.0 nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/498914?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 19:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d228c1aa-ea69-4274-a2d8-389f9d6c67aa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Could you elaborate a bit more on this. How many bytes are you sending/receiving, how are you meausering the delay, could you show the code that you are using for the&amp;nbsp;&lt;span&gt;write and read functions, etc&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Communication SDK 2.4.0 nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/498890?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 14:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a64d2e91-6510-4157-8990-a3ec243ae127</guid><dc:creator>Paul M.</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;we were able to get the spi communication to run. We redid everything following the Zephyr SPI API step by step.&lt;/p&gt;
&lt;p&gt;However, our sensor which we want to use requires a minimum delay time between write and read functions of 1 ms. Is there a way to do that using the&amp;nbsp;spi_transceive_dt function? We were able to do it using the seperate write and read functions, but I&amp;#39;d rather use the&amp;nbsp;spi_transceive_dt function.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Communication SDK 2.4.0 nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497814?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 12:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1424c951-7262-4500-8926-98ca31c9a3a7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="Paul M."]it keeps shooting our errors if I do that.[/quote]
&lt;p&gt;What errors are you getting? With spi4 you don&amp;#39;t get any errors?&lt;/p&gt;
&lt;p&gt;did you set&amp;nbsp;spi1_default and&amp;nbsp;spi1_sleep to use&amp;nbsp;&lt;span&gt;P1.13 for MOSI, P1.14 for MISO and P1.15 for SCK ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Communication SDK 2.4.0 nRF5340 DK</title><link>https://devzone.nordicsemi.com/thread/497668?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 16:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaf752ed-fed0-4f10-8f3a-eacae3672194</guid><dc:creator>Paul M.</dc:creator><description>&lt;p&gt;I may need to add that I did not create the overlay file with the following as it was told in the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/topic/zephyr-spi-api/"&gt;tutorial&lt;/a&gt;:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
        compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
        status = &amp;quot;okay&amp;quot;;
        cs-gpios = &amp;lt;&amp;amp;gpio0 18 GPIO_ACTIVE_LOW&amp;gt;;
        pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
        pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
        pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
        gendev: gendev@0 {
                compatible = &amp;quot;vnd,spi-device&amp;quot;;
                reg = &amp;lt;0&amp;gt;;
                spi-max-frequency = &amp;lt;1600000&amp;gt;;
                label = &amp;quot;GenDev&amp;quot;;
        };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried doing that, but (I did change spi1 to spi4) it keeps shooting our errors if I do that.&lt;/p&gt;
&lt;p&gt;Instead, I used spi4 directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>