<?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 cs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61517/spi-cs</link><description>Dear Sir. 
 
 I am using SPI as follows. 
 
 gpio_pin_write(dev_io, LIS2DH12_CS_PIN, false); err = spi_transceive(spi_dev1, &amp;amp;spi_cfg1, &amp;amp;tx, &amp;amp;rx); gpio_pin_write(dev_io, LIS2DH12_CS_PIN, true); 
 
 In this case 2 spi bytes are sent. the CS length contains</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 May 2020 14:10:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61517/spi-cs" /><item><title>RE: spi cs</title><link>https://devzone.nordicsemi.com/thread/251025?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 14:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494bbe7b-1576-4c9b-b5fd-87c8997f5bf0</guid><dc:creator>frax84</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you should share the part of code for &amp;quot;tx&amp;quot; and &amp;quot;rx&amp;quot; spi_buf_set setup&amp;nbsp;to allow better support.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/61517/spi-cs/250728"]I would also recommend providing the CSN pin as an input to the spi config (struct spi_config), member .csn[/quote]
&lt;p&gt;I&amp;#39;m using this setting with success. With this, CS management is done by the nrf9160.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi cs</title><link>https://devzone.nordicsemi.com/thread/250728?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 12:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80d85b6d-ac20-45e8-9d45-32d614772bb9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your SPI configured as asynchronous? You can check this via config &amp;quot;CONFIG_SPI_ASYNC&amp;quot;. I would also recommend providing the CSN pin as an input to the spi config (struct spi_config), member .csn, to see if this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>