<?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>Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105062/which-spi-nodes-can-i-use-on-the-nrf7002dk</link><description>I have 3.3v supplied to the vio_ref pin so that the vdd is pulled to 3.3v from the 1.8v buck regulator on the nrf7002dk. I have this dk&amp;#39;s spi1 connected to a nrf52840 SPI peripheral, as well as an interrupt. The interrupt pin is working to trigger a callback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2023 18:06:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105062/which-spi-nodes-can-i-use-on-the-nrf7002dk" /><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452669?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 18:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44ac8999-a37f-4fc0-badb-354601539689</guid><dc:creator>Abraham Hamidi</dc:creator><description>&lt;p&gt;I just confirmed on GPIO these pins are not changing value, so it is not an issue with SPI. It is an issue with my configuration somewhere. Closing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452664?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 16:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5232111c-31de-453a-931b-22d0cf1a2770</guid><dc:creator>Abraham Hamidi</dc:creator><description>&lt;p&gt;Right now I am just going between a nrf5340dk and my nrf52840, as it is probably easier to get working than with the nrf7002dk. I am using a semaphore for the transceive on master side set by the interrupt, but the semaphore is taken by a cooperative thread. The slave transceive is completing, it gets the correct number of bytes received (which means SCK is working), but the receive buffer is always 0. The receive on the master is also 0. Also, I am using the Zephyr SPIM and SPIS drivers that are implemented by nordic, not the nrfx library directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452596?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 12:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2703652d-f2f8-4d28-9ee9-d7d508655b7e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;&amp;quot;Which SPI nodes can I use on the nrf7002dk&amp;quot;,&lt;/p&gt;
&lt;p&gt;The nRF7002 itself has only one instance of QSPI/SPI peripheral, the nRF5340 has 4 for the application core and 1 dedicated to the network core. You can use any of the 4 of the application core SPIM.&amp;nbsp;&lt;/p&gt;
[quote user=""]I have 3.3v supplied to the vio_ref pin so that the vdd is pulled to 3.3v from the 1.8v buck regulator on the nrf7002dk.[/quote]
&lt;p&gt;Could you elaborate a bit more on this?&amp;nbsp;&lt;/p&gt;
[quote user=""]The interrupt pin is working to trigger a callback on the nrf7002dk. However, when I do the spi read, it doesn&amp;#39;t unblock transceive on the peripheral. It reads all 0. I do the read on interrupt. Should I use a different spi node, or is there any additional configuration I need?[/quote]
&lt;p&gt;To make sure that I understood your question correctly:&lt;/p&gt;
&lt;p&gt;You have connected a nRF52840 to the nRF5340 on the nRF7002 DK over SPI. The master is the nRF5340, but you have a interrupt pin that is connected to the nRF52840 that you toggle to tell the SPIM master on the nRF5340 to send data over SPI? Is this correct?&lt;/p&gt;
&lt;p&gt;Are you starting the SPI read in the interrupt callback handler? This is usually a bad idea, the preferred method is to either use a work queue or do it main context by setting a flag/semaphore in the callback handler that is checked in the main loop.&lt;/p&gt;
[quote user="Cilan"]Reopening this because I was wrong. I confirmed with a logic analyzer SCK, MOSI, CS are going through, and slave detects correct amount of bits from SCK, but it seems to do nothing with MOSI and generates no MISO. I am on the latest Nordic Connect SDK version. Both sides receive all 0&amp;#39;s. I tested this with both the nrf7002dk and the nrf5340dk, and am now trying to first get it working between the nrf5340dk and the nrf52840 (52840 is slave).[/quote]
&lt;p&gt;What pins on the nRF7002 DK are you using and what instance of the SPIM on the nRF5340?&lt;/p&gt;
&lt;p&gt;Which NCS version are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try to run &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_spim_spis/non_blocking"&gt;this &lt;/a&gt;sample on your nRF7002 board using the same pins for master and see if it works,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452409?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 05:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7004eec2-e847-458b-807f-92b31ec6ed7a</guid><dc:creator>Abraham Hamidi</dc:creator><description>&lt;p&gt;Reopening this because I was wrong. I confirmed with a logic analyzer SCK, MOSI, CS are going through, and slave detects correct amount of bits from SCK, but it seems to do nothing with MOSI and generates no MISO. I am on the latest Nordic Connect SDK version. Both sides receive all 0&amp;#39;s. I tested this with both the nrf7002dk and the nrf5340dk, and am now trying to first get it working between the nrf5340dk and the nrf52840 (52840 is slave).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452377?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 22:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29dbd6ec-59b6-431f-b1cc-44a576041dae</guid><dc:creator>Abraham Hamidi</dc:creator><description>&lt;p&gt;I figured it out. I&amp;#39;m bridging P0.17 to my MISO pin, which is used by QSPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which SPI nodes can I use on the nrf7002dk</title><link>https://devzone.nordicsemi.com/thread/452371?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 20:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d02dcf7d-d8dd-4f72-99eb-3b27be6dc36c</guid><dc:creator>Abraham Hamidi</dc:creator><description>&lt;p&gt;I fixed a lot of obvious configuration problems and the transceive is happening now on the slave side, but I&amp;#39;m still getting all 0 on the master side.&lt;/p&gt;
&lt;p&gt;Edit: I found so far that receiving works on slave side, but not on master side. Master receives 0 but successfully sends.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>