<?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 with chip select using GPIO in SDK V11.0 not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14271/spi-with-chip-select-using-gpio-in-sdk-v11-0-not-working</link><description>Hi, 
 I am trying to use SPI to get data from a sensor. In nRF 5 SDK V11, I got it to work by setting the SS pin in the config struct of the initialization function. 
 
 Now, instead of declaring the chip select in the config structure, I want to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jun 2016 18:51:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14271/spi-with-chip-select-using-gpio-in-sdk-v11-0-not-working" /><item><title>RE: SPI with chip select using GPIO in SDK V11.0 not working</title><link>https://devzone.nordicsemi.com/thread/54466?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 18:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd4c757-e3fb-4dc3-82c1-25086c50169a</guid><dc:creator>Nitin Bandaru</dc:creator><description>&lt;p&gt;I figured out the problem. I was reading from multiple registers without toggling the chip select pin which was creating issues. It works when I toggle the chip select every time I read from a register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with chip select using GPIO in SDK V11.0 not working</title><link>https://devzone.nordicsemi.com/thread/54465?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 10:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b73b10b-df7e-4ba3-8b6c-adf1d6de0bec</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Since it works with setting the SS pin in the config struct there have to be something wrong with &lt;strong&gt;when&lt;/strong&gt; the chip select signal goes low/high. If you use blocking mode the transfer should be done when the function returns, if you use non-blocking mode the transfer is done when you enter the spi event handler.&lt;/p&gt;
&lt;p&gt;I have not tested with setting/clearing the CS pin manually, but it should be quite simple to test using the spi and spis (for testing the other end) examples in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with chip select using GPIO in SDK V11.0 not working</title><link>https://devzone.nordicsemi.com/thread/54464?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2016 18:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a10c01f-17af-4e72-9611-dadf67c7493c</guid><dc:creator>Nitin Bandaru</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I am using 52 dk. I tried both blocking and non-blocking modes and neither of them worked. Is there a flag to check if transaction is complete? Even otherwise I tried having a 10-20 ms delay before pulling the line high which should be enough time for data transfer. I am trying to get a logic analyzer but that&amp;#39;s going to take some time and I needed to get this done soon.&lt;/p&gt;
&lt;p&gt;Have you made it work before? If yes, do you have a code that I could try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with chip select using GPIO in SDK V11.0 not working</title><link>https://devzone.nordicsemi.com/thread/54463?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2016 15:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b51e3cb-1960-4185-b66c-adf45f0cd4a1</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Which DK are you using, 51 or 52? Are you using non-blocking spi and do you wait for the transaction to finish before you pull the CS line high? You may want to connect an oscilloscope or logic analyzer to the lines to see what actually happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>