<?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 not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67405/spi-not-transferring-when-sck-pin-not-used</link><description>Hi there! 
 I&amp;#39;m in the process of migrating a project from a nRF52832 to nRF52840 due to insufficient memory and of course some problems arise during the process. Most of the problems are configuration related, but I believe this one to be a bug. 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2020 14:52:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67405/spi-not-transferring-when-sck-pin-not-used" /><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276267?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d405949f-0048-4cf6-ae78-b162d74cbf1f</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Haven&amp;#39;t looked at it that way. Thanks. This was my first question by the way. Still a bit new all this ; ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276262?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957de1fe-0715-4b7e-b090-1f1da490fdcd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Well, the question of why it happens is answered - so marking it would help people to find threads which answer the question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276260?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b795a945-0380-4152-9aa4-7af8a3a47d5a</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Is it solved though? It is temporarily solved with a workaround. Wouldn&amp;#39;t be too hard for the devs to implement a construction that throws an error when sck_pin is set to not_used. Could save people a lot of time...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276159?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 11:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c5c007-7d10-48a1-936c-b60c76725d96</guid><dc:creator>awneil</dc:creator><description>[quote userid="94539" url="~/f/nordic-q-a/67405/spi-not-transferring-when-sck-pin-not-used/276084#276084"]Just wish it would&amp;#39;ve been easier to find[/quote]
&lt;p&gt;I guess that always the trouble with &amp;quot;abusing&amp;quot; a feature like this.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Still interesting that you got away with it on the nRF52832, though!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0003._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276084?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 07:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1f6c338-1bc3-42fb-843b-dcc5ba0858b3</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Oh well... That&amp;#39;s great... Makes sense though. Just wish it would&amp;#39;ve been easier to find or&amp;nbsp;using the macro on the sck_pin threw an error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/276040?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 22:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4241ea7d-8c28-47ba-83c0-24d8f8d8079d</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;We found that the general purpose peripheral which underlies SPIM/TWIM requires the clock signal to physically exist otherwise the internal registers are not clocked; maybe a consequence of using the same peripheral hardware to accept both internal (master) and external (slave) synchronous clock to drive the registers. Somewhere there is a note about this, but of course I don&amp;#39;t remember where. This only applies to SCK, not MOSI and MISO. It&amp;#39;s not&amp;nbsp; bug, it&amp;#39;s a feature ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275868?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 11:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24bd635-4061-464a-b625-4828856bf296</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ve looked at it but couldn&amp;#39;t find anything obvious. In fact, the&amp;nbsp;NRF_DRV_SPI_DEFAULT_CONFIG even has all pins (sck, mosi, miso and ss) set to&amp;nbsp;NRF_DRV_SPI_PIN_NOT_USED.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275866?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 11:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481897b2-ebb2-4e5e-89d6-9605c90414b2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you tried looking at (or stepping through) the code to see if there&amp;#39;s anything obvious that&amp;#39;s messed up by having the SCK pin as &amp;#39;Not Used&amp;#39; ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275857?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec5f939f-2305-4107-ad5f-456a0dc8fe0a</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Yep, haha. I know it&amp;#39;s kinda mis-using SPI, but still; I wouldn&amp;#39;t expect the macro to completely prevent transactions from completing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At least there&amp;#39;s a temporary fix; wouldn&amp;#39;t be the end of the world if there isn&amp;#39;t a proper solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275841?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92e4930e-4c31-4793-a101-2232844978c4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Aha - that&amp;#39;s a key bit of information! Yes, I have done this on nRF52832; haven&amp;#39;t tried nRF52840.&lt;/p&gt;
&lt;p&gt;Strictly, it is using the SPI peripheral in a way it&amp;#39;s not intended - I guess we&amp;#39;ll have to wait for the Nordic guys to say if there&amp;#39;s anything that can be done ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275834?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d121a85a-5c88-48b7-9709-d30c22075462</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Sorry, forgot to add that I wrote a library for the WS2812 leds. Using SPI at 4MHz with DMA is a very efficient way to control these leds. Then, 4 bits represent 1 bit in the WS2812 protocol. Hence MOSI is connected straight to the DIN pin of the leds and other pins are not used nor necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI not transferring when sck pin not used</title><link>https://devzone.nordicsemi.com/thread/275832?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 09:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86cddb1-c246-4a4e-935c-0d7de3edc106</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Why would you set the SCK pin as &amp;#39;not used&amp;#39; - surely that makes no sense?!&lt;/p&gt;
&lt;p&gt;SCK is essential to SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>