<?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>Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98443/trying-to-use-spi-for-nrf7002-connection-to-host</link><description>I&amp;#39;ve been trying to use SPI instead of QSPI to connect the nrf7002 to de nrf5340 on the nrf7002dk. I used the wifi shell example from nordic. I used an overlay file to reassign the nrf7002 module to de SPI pins, and the example is building correctly.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2023 12:10:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98443/trying-to-use-spi-for-nrf7002-connection-to-host" /><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/446864?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 12:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5521f1d-e5e8-4011-8c0c-4ddc40146ece</guid><dc:creator>Rajendran Veerakaran</dc:creator><description>&lt;p&gt;Hi JoSch,&lt;/p&gt;
&lt;p&gt;Did you get any solution for this problem. Because I am also facing the same issue in 7002 DK.&amp;nbsp;If you solved this problem, Can you share me overlay file. I don&amp;#39;t know how to do &amp;quot;/delete-property/&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/419489?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 13:57:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73ae8c7b-3cd7-4cf7-8f27-a0d5c7c6ee11</guid><dc:creator>JoSch</dc:creator><description>&lt;p&gt;I discovered I could do this using /delete-node/ and /delete-property/ in the overlay file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/419487?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 12:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e4f068b-3620-48b4-8112-b84add010702</guid><dc:creator>JoSch</dc:creator><description>&lt;p&gt;Thanks for your answer, I corrected that mistake! Anyways, I discovered that besides that error it wasn&amp;acute;t working due to a different reason. Disabling the qspi node in my overlay file isn&amp;#39;t enough, since the wifi pins are still connected to the nrf7002 instance on the qspi node. In order for it to work I had to delete the qspi node from the original dts file, wich I know is wrong. I would like to know if there&amp;#39;s a way to disable qspi and the nrf7002 instance at the same time from my overlay file. The reason I want to disable qspi is because I want to use the same pins but with spi.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/419342?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 03:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2d6ed7-fb88-4c57-a5cb-05f7d4af8584</guid><dc:creator>Craig12</dc:creator><description>&lt;p&gt;Josefina,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m a third party developer, not associated with Nordic. We have been working with using the nRF7002 on the nRF52840 in SPI mode as QSPI mode currently throws some build errors such as unknown type nrf_qspi_encryption_t.&amp;nbsp; (nRF52840 QSPI I/F doesn&amp;#39;t have HW encryption, like the nRF5340).&lt;/p&gt;
&lt;p&gt;Your post caught my interest. This is the output nRF7002-DK working in SPI Mode:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.306,579] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@b000: freq = 24 MHz
[00:00:00.306,610] &amp;lt;inf&amp;gt; wifi_nrf: SPIM spi@b000: latency = 1
[00:00:00.326,202] &amp;lt;inf&amp;gt; wifi_nrf: wifi_nrf_fmac_fw_load: LMAC patches loaded
[00:00:00.337,036] &amp;lt;inf&amp;gt; wifi_nrf: wifi_nrf_fmac_fw_load: LMAC boot check passed
[00:00:00.355,682] &amp;lt;inf&amp;gt; wifi_nrf: wifi_nrf_fmac_fw_load: UMAC patches loaded
[00:00:00.366,516] &amp;lt;inf&amp;gt; wifi_nrf: wifi_nrf_fmac_fw_load: UMAC boot check passed
[00:00:00.387,725] &amp;lt;inf&amp;gt; wifi_nrf: RPU LPM type: HW
[00:00:00.506,317] &amp;lt;inf&amp;gt; fs_nvs: 6 Sectors of 4096 bytes
[00:00:00.506,317] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fe8
[00:00:00.506,347] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 0
*** Booting Zephyr OS build v3.2.99-ncs2 ***
Starting nrf7002dk_nrf5340_cpuapp with CPU frequency: 128 MHz
[00:00:00.506,622] &amp;lt;inf&amp;gt; wpa_supp: z_wpas_start: 385 Starting wpa_supplicant thread with debug level: 3
[00:00:00.506,713] &amp;lt;inf&amp;gt; wpa_supp: Successfully initialized wpa_supplicant&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Attached is the overlay file.&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5430.nrf7002dk_5F00_nrf5340_5F00_cpuapp.overlay"&gt;devzone.nordicsemi.com/.../5430.nrf7002dk_5F00_nrf5340_5F00_cpuapp.overlay&lt;/a&gt;&amp;nbsp;(Looks like the forum has changed the filename)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;SPI2 works fine. Your SPI2 node was pointing to pins defined in spi2_default (pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;), but these were not in the overlay file. In your pinctrl node, you were defining alternatives (spi2_default_alt: spi2_default_alt)&lt;br /&gt;&lt;br /&gt;In the nRF7002dk board files, spi2_default had assigned different pins to what was required to talk to the nRF7002 on the DK (and hence why it was returning 0xFFFF)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/419299?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 14:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6fcd8b-8ce4-43fd-8f86-f6497cd317ff</guid><dc:creator>JoSch</dc:creator><description>&lt;p&gt;I tried with all the SPI instances and I ended up getting the same type of error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use SPI for nrf7002 connection to Host</title><link>https://devzone.nordicsemi.com/thread/419255?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 11:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b6a57a-3919-4ab6-bf38-edd1be7738fb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think you&amp;#39;re seeing this issues because the SPI2 instance is already used by default in the&lt;strong&gt;...\&amp;lt;YOUR_NCS_FOLDER&amp;gt;\v2.3.0\nrf\boards\arm\nrf7002dk_nrf5340\nrf7002dk_nrf5340_cpuapp-pinctrl.dtsi&lt;/strong&gt;. Can you try using another SPI instance, for example switching the SPI4 instance used for external flash communication with the QSPI instance, or use the SPI0 or SPI1 instance which should both be unused.&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>