<?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>nRF52832: SPIM1/2 don&amp;#39;t generate SCKs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41273/nrf52832-spim1-2-don-t-generate-scks</link><description>I have a custom board with an nRF52832 (CIAA-B0), and I am trying to use the SPI Master. 
 When I use SPIM1 or SPIM2, the transaction hangs, but the same code talking to SPIM0 succeeds. 
 I load the EasyDMA with 2 RAM buffers, with RX/TX sizes equal </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Dec 2018 17:54:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41273/nrf52832-spim1-2-don-t-generate-scks" /><item><title>RE: nRF52832: SPIM1/2 don't generate SCKs</title><link>https://devzone.nordicsemi.com/thread/160630?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 17:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae562d7-4421-49e8-9f24-16d519bb0387</guid><dc:creator>Bruce McKenney</dc:creator><description>&lt;p&gt;My mistake. Some &amp;quot;dead&amp;quot; code came alive and adopted my pins for something else. (Double-assignment.)&lt;/p&gt;
&lt;p&gt;Sorry for wasting everyone&amp;#39;s time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: SPIM1/2 don't generate SCKs</title><link>https://devzone.nordicsemi.com/thread/160568?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 12:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:834b2d0f-8129-41dd-a495-46fbbeb7b5cb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have you been able to reproduce this behavior on nRF52-DK?&lt;/li&gt;
&lt;li&gt;Which pins are you using for the SPI interface?&lt;/li&gt;
&lt;li&gt;Can you post the code you used for testing this?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: SPIM1/2 don't generate SCKs</title><link>https://devzone.nordicsemi.com/thread/160477?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 21:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a27916-9f88-4dfb-9343-d7e58612c4c0</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;It supports both actually. &amp;nbsp;Have a look at use cases in sensor drivers from the root of the project. &amp;nbsp;This example shows how to use it in &lt;a href="https://github.com/I-SYST/EHAL/blob/master/exemples/spi/spi_master_slave.cpp"&gt;SPI Master/Slave mode&lt;/a&gt;&amp;nbsp;full duplex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: SPIM1/2 don't generate SCKs</title><link>https://devzone.nordicsemi.com/thread/160474?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 21:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f99e41-bfaa-4ee3-88c4-7bb9930d45de</guid><dc:creator>Bruce McKenney</dc:creator><description>&lt;p&gt;Thank you for the suggestion. It appears (?) that this driver works only half-duplex, i.e. a transaction is broken up into Tx-only and Rx-only segments. I might be able to do that with mine, but I didn&amp;#39;t expect that was a restriction -- SPIM0 doesn&amp;#39;t appear to have it.&lt;/p&gt;
&lt;p&gt;The only other difference I could see was the interrupt enablement, which I&amp;#39;m not doing. I threw in a ClearPendingIRQ just as an experiment, but it made no difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: SPIM1/2 don't generate SCKs</title><link>https://devzone.nordicsemi.com/thread/160472?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 20:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd324c1-42f4-4350-a41d-f0b9f2b562c4</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;This &lt;a href="https://github.com/I-SYST/EHAL/blob/master/ARM/Nordic/nRF52/EHAL/src/spi_nrf52.cpp"&gt;SPI driver &lt;/a&gt;works well with all 3 SPI. &amp;nbsp;The code is very simple. &amp;nbsp;It supports both master &amp;amp; slave mode. &amp;nbsp;Have a look, you may find the missing link to your SPI issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>