<?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 - Manual control of CS line and sending and receiving 1 byte at a time.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96444/spi---manual-control-of-cs-line-and-sending-and-receiving-1-byte-at-a-time</link><description>I am struggling with something that should be super easy - but my mediocre programming skills are failing me so I beg for your help! 
 I am connecting a W5500 wiznet chip to the NRF52. I am using Segger. The SPI device seems fairly standard. Using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Feb 2023 11:02:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96444/spi---manual-control-of-cs-line-and-sending-and-receiving-1-byte-at-a-time" /><item><title>RE: SPI - Manual control of CS line and sending and receiving 1 byte at a time.</title><link>https://devzone.nordicsemi.com/thread/409118?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 11:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f47e41b-ad93-4e07-8b00-9651e5721e75</guid><dc:creator>Throw_Throw_Burrito</dc:creator><description>&lt;p&gt;Thanks. Making that change to RX made no difference.&lt;/p&gt;
&lt;p&gt;But I did manage to find my error though, pointer issues..........&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void w5500_test_write_reg(uint8_t *tx_data)
{
NRF_LOG_INFO(&amp;quot;Write = %d&amp;quot;, tx_data);

//**** TX &amp;amp; RX transmition parameters
uint8_t tx_len = 1; // TX number of bytes

spi_xfer_done = false; //**** Set the transfer flag to false
APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;spi, &amp;amp;tx_data, tx_len, NULL, 0));
while(spi_xfer_done == false){};
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI - Manual control of CS line and sending and receiving 1 byte at a time.</title><link>https://devzone.nordicsemi.com/thread/408955?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 15:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4e753c-9ab9-4acf-b052-e66490588c50</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Conseptually I don&amp;#39;t see any reason why this should not work, but can you just create a rx_data buffer[1] and rx_len=0?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If no luck, please build with DEBUG so you can find exactly where the fatal error occurs from the log output from app_error_fault_handler().&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>