<?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 Slave not working on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114781/spi-slave-not-working-on-nrf9160dk</link><description>Hello, 
 I&amp;#39;m trying to get some basic SPI communication between the nRF91 and nRF52 chips on the nRF9160DK. We have been using UART for this communication however we want to move to SPI so we can connect some additional chips to the nRF52. 
 Using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2024 12:54:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114781/spi-slave-not-working-on-nrf9160dk" /><item><title>RE: SPI Slave not working on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/503756?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 12:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7f3f7e-5842-4c2e-91b5-4b7b2669a638</guid><dc:creator>mike.bush.valtech</dc:creator><description>&lt;p&gt;Turn out the CS line from the master was active high instead of active low. For anyone needing SPI working on the nrf9160dk working sample can be found here:&amp;nbsp;&lt;a id="" href="https://github.com/mbush91/nrf9160dk_spi_test"&gt;https://github.com/mbush91/nrf9160dk_spi_test&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave not working on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/503276?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 13:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8502973-5ac3-40a2-9877-e1dfaf36953a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is there any error message or error code? If not, try adding debug logs or using error handling to determine whether the SPI driver on the nRF91 is receiving and processing data correctly. Capture any errors returned by the &lt;code&gt;spi_read&lt;/code&gt; calls on the nRF91 side.&lt;/p&gt;
&lt;p&gt;One more thing I noticed while checking the application is that you have defined small buffers on both sides (&lt;code&gt;rx_buffer[2]&lt;/code&gt;, &lt;code&gt;tx_buffer[2]&lt;/code&gt;). Ensure that the data you&amp;#39;re sending fits into these buffers. If you&amp;#39;re transferring more than 2 bytes, the buffer size should be adjusted accordingly.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave not working on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/503112?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 11:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1aa284-8788-43fc-8844-da412f159bf5</guid><dc:creator>mike.bush.valtech</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m currently building with the v2.6.1 SDK. uart1 is disabled in both the nrf52 and nrf91 applications but I&amp;#39;ve also tried switching to spi3 which doesn&amp;#39;t work either. I can see data on all four lines with the logic analyzer but&amp;nbsp;the data doesn&amp;#39;t seem to make it into the driver&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave not working on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/503042?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 07:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49d2c0a9-dbcd-40e2-9e6a-ab50d9d3b113</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? I reviewed the 91 overlay, and it looks good to me. However, please check if the selected pins (P0.17, P0.18, P0.19, and P0.21) are not being used by other peripherals or functions in the application. If any of these pins were previously used for UART1, ensure that disabling the UART has fully released them for SPI use.&lt;/p&gt;
&lt;p&gt;Could the issue be that the nRF52 is not correctly driving the SPI clock (SCK) as the master and is not initiating SPI transactions? The SPI slave (nRF91) relies on the master to start transactions, so if there’s no active clock signal from the master, that could explain why the RX buffer on the nRF91 isn&amp;#39;t receiving data. Can you verify this with a logic analyzer or oscilloscope?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>