<?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>Manual CS control with Zephyr SPI driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112500/manual-cs-control-with-zephyr-spi-driver</link><description>I&amp;#39;m working on adapting ST&amp;#39;s RFAL NFC library for ST25R3916B/X-NUCLEO-NFC08A1 on an nRF5340/DK in order to emulate an NFC tag, and would appreciate some insight into how Zephyr&amp;#39;s SPI driver works. The RFAL specifies that &amp;quot;[t]he SPI CS must be controlled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 15:46:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112500/manual-cs-control-with-zephyr-spi-driver" /><item><title>RE: Manual CS control with Zephyr SPI driver</title><link>https://devzone.nordicsemi.com/thread/491401?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 15:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50692e9a-4588-4f77-9ee8-54324bc7c1f9</guid><dc:creator>LltWc</dc:creator><description>&lt;p&gt;Fixed my issue - there was a problem with my layer over spi_transceive(); I didn&amp;#39;t properly form the messages for NULL Rx/Tx arguments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manual CS control with Zephyr SPI driver</title><link>https://devzone.nordicsemi.com/thread/491180?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 19:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a59b9c2e-9181-49de-bd13-da25572872bb</guid><dc:creator>LltWc</dc:creator><description>&lt;p&gt;Thanks Priyanka, I&amp;#39;ll try that method tomorrow as I&amp;#39;m getting an error with what I ended up doing before your response. I configured the SPI device with have SPI_HOLD_ON_CS so that CS would stay active until released. I #defined st25r3916comStart() to nothing and st25r3916comStop() to spi_release(), and it works for a few dozen cycles before I get the below error. Any ideas? I searched about this error and everyone else seemed to have multiple pins doing the same thing, but I don&amp;#39;t have any GPIOs set to SPI pins and that&amp;#39;s all I&amp;#39;m using.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719517916341v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manual CS control with Zephyr SPI driver</title><link>https://devzone.nordicsemi.com/thread/491118?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 12:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6f6c9e6-272f-42ca-b2b7-a3e841d4ee8f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make sure&amp;nbsp;that your device tree does not define &lt;strong&gt;cs-gpios&lt;/strong&gt; for the SPI peripheral if you want to control it manually. Configure the SPI without the CS line.&lt;/p&gt;
&lt;p&gt;Please also take a look at &lt;a 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"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>