<?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 communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32012/spi-communication-failure-between-nrf52840-preview-dk-and-arduino-uno</link><description>Hello DevZone, 
 I am doing a simple test for SPI communication between nRF52840 DK(SPI master) and Arduino UNO(slave). 
 The Nordic program is based on SDK 14.2.0 spi example, I only change the TEST_STRING from &amp;quot;Nordic&amp;quot; to &amp;quot;N&amp;quot; and PIN number according</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Apr 2018 06:41:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32012/spi-communication-failure-between-nrf52840-preview-dk-and-arduino-uno" /><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/129661?ContentTypeID=1</link><pubDate>Wed, 25 Apr 2018 06:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffaeab5e-20fa-44f4-9442-199e6431c736</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rubens&lt;/p&gt;
&lt;p&gt;I am sorry for the slow response, it was hard to find some time to dig into this...&lt;/p&gt;
&lt;p&gt;Finally I got my Arduino Uno running, and I&amp;nbsp;am also having some issues getting communication between the two.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I just realized is that the voltage between the two boards will not be compatible. The Arduino runs at 5V, while the nRF52840 PDK runs at around 3.0V normally, and this is likely to cause issues when you try to establish communication between the two.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend you either put&amp;nbsp;level shifters on your SPI lines to do the voltage conversion, or hack your Arduino to run at 3.3V as described &lt;a href="https://learn.adafruit.com/arduino-tips-tricks-and-techniques/3-3v-conversion"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/126722?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 00:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82b201c-b5a9-49eb-878b-cb73603a379c</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Hi ovrebekk,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you got chance to reproduce this issue?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/125066?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 22:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db82418-8f17-4aa8-bbbe-bcb15438294b</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thanks Turbo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have removed the print() from my code, but still the issue is...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/124870?ContentTypeID=1</link><pubDate>Sat, 17 Mar 2018 19:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc559aac-b401-4986-a24e-29bad5a94a29</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The Serial.print() calls in the ISR can take waaay longer than the SPI transaction, so you may loose a lot of chars in between. Better to use a FIFO here and print the stuff from main loop().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/124859?ContentTypeID=1</link><pubDate>Sat, 17 Mar 2018 12:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894e9931-5e11-442c-b512-55f0e86a152a</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;For above code, what I expect is when Nordic DK send any char to Arduino Uno, Nordic DK should receive the same char when Nordic DK transfers next char. In above case, &amp;#39;N&amp;#39; should be repeatedly send and received by Nordic DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In Arduino side, I can see that the log shows &amp;#39;N&amp;#39; is received properly and set in register for reply. However, in Nordic DK log, I cannot see correct answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tested different mode,&amp;nbsp;but both them are failed to get correct reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication failure between nRF52840 Preview DK and Arduino UNO</title><link>https://devzone.nordicsemi.com/thread/124418?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 15:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb5dd71a-1112-4eb8-8e50-62fbb19ddd27</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is wrong with the response?&amp;nbsp;&lt;br /&gt;Are you able to list what you receive, and what you expected to receive?&lt;/p&gt;
&lt;p&gt;If you have the wrong mode configured in one of the boards it&amp;#39;s not uncommon for data transaction to only work in one direction.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try changing the mode in the Nordic code and see if it makes a difference?&lt;br /&gt;Try MODE_2 first, and if that doesn&amp;#39;t work you can try MODE_1 and MODE_3 as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If nothing else works I will try to reproduce your issue on my end, and see if I can spot the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>