<?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_transceive blocks indefinitely at spi_context_wait_for_completion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86810/spi_transceive-blocks-indefinitely-at-spi_context_wait_for_completion</link><description>I&amp;#39;ve created a new sandbox project for a nRF9160DK that requires a SPI Master for testing a Flash part. Since I already have &amp;quot;working&amp;quot; SPIM code in a different Segger project, I just copied that code to the new project. Unfortunately, when I run the new</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Apr 2022 13:30:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86810/spi_transceive-blocks-indefinitely-at-spi_context_wait_for_completion" /><item><title>RE: spi_transceive blocks indefinitely at spi_context_wait_for_completion</title><link>https://devzone.nordicsemi.com/thread/363037?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 13:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7dd4173-7792-4fab-9bfa-9259d8df5974</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you send the whole project for which you are getting right data on LA and the current one which is proving you the error? &amp;nbsp;We would like to compare and check (with LA) the projects from our side. I assume there may be something wrong with the pin number which leads to this non accurate behavior on logic analyzer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi_transceive blocks indefinitely at spi_context_wait_for_completion</title><link>https://devzone.nordicsemi.com/thread/362916?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 19:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c76056d-13a8-4e74-8de5-e491b1526339</guid><dc:creator>KCrawford</dc:creator><description>&lt;p&gt;From a source code standpoint, there is no difference between the 2 projects. And while I agree it doesn&amp;#39;t make sense, it is happening. Out of desperation, I went back to a SPI ticket you and I worked on a couple of months ago. I downloaded that code. Copied it into a blinky example using SDK v1.9.1 and ended up with the same result, spi_transceive just hangs. I have attached my sample code and a screenshot from my LA. Line 0 is CS, Line 1 is SCLK, 2 and 3 are MOSI and MISO. The LA trace looks very strange, the clock is really irregular, there is no activity on MOSI/MISO and the delays to assert/deassert CS are so long my cheap scope won&amp;#39;t capture it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BTW, I am using Windows 11 for this development. Have you heard of any issues with J-Link and Windows 11?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As always I appreciate your help and insight.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/22600.sample.zip"&gt;devzone.nordicsemi.com/.../22600.sample.zip&lt;/a&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_04_2D00_11-141118.gif" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi_transceive blocks indefinitely at spi_context_wait_for_completion</title><link>https://devzone.nordicsemi.com/thread/362834?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 11:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50317b57-329e-4ba2-89e9-163c803f7d32</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What exactly are the differences between the two projects? As there must be some for one project to work, and for the other to halt in this &lt;strong&gt;wait for completion.&amp;nbsp;&lt;/strong&gt;This generally means that the device is not able to either transmit or receive data from the SPI device. Are you sure the SPI device is connected correctly to the nRF9160 DK and that those pins are configured correctly in your project?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>