<?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>nRF52840-DK and nRF52840 Dongle difference during SPI communication with same pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64791/nrf52840-dk-and-nrf52840-dongle-difference-during-spi-communication-with-same-pins</link><description>Hello, 
 I observed a weird behavior when I changed to nRF52840-DK from nRF52840 Dongle. I am using the device as an SPI slave connected to a Raspberry PI as SPI master. 
 The following pins are used: 
 SCK: P1.10 
 MISO: P1.13 
 MOSI: P1.15 
 CS: P0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Aug 2020 13:39:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64791/nrf52840-dk-and-nrf52840-dongle-difference-during-spi-communication-with-same-pins" /><item><title>RE: nRF52840-DK and nRF52840 Dongle difference during SPI communication with same pins</title><link>https://devzone.nordicsemi.com/thread/266264?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 13:39:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e1cb18-121c-4769-8e55-f03f7b11ece1</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you been able to capture a trace from the oscilloscope?&lt;/p&gt;
&lt;p&gt;So if I understand the problem correctly, the data sent from the nRF52 via MISO to the raspberry is missing one bit? What happens if you run it without debugging?&lt;/p&gt;
&lt;p&gt;Have you tried to track down the issue and figure out exactly where the fault happens?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is the tx buffer set to in&amp;nbsp;nrf_drv_spis_buffers_set?&lt;/li&gt;
&lt;li&gt;What is the tx buffer set to in&amp;nbsp;nRF5SDK17009d13099\nRF5_SDK_17.0.0_9d13099\modules\nrfx\hal\nrf_spis.h--&amp;gt;nrf_spis_tx_buffer_set()?&lt;/li&gt;
&lt;li&gt;What is transferred over the lines? (Check with an oscilloscope or logic analyzer)&lt;/li&gt;
&lt;li&gt;What is received on the Raspberry?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you can track down&amp;nbsp;exactly where the issue occurs,&amp;nbsp;it is easier to figure out the cause.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840-DK and nRF52840 Dongle difference during SPI communication with same pins</title><link>https://devzone.nordicsemi.com/thread/265425?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 23:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94203321-aa61-4cbc-b9a2-9593c047a3d3</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry for the delay, I&amp;#39;ve been quite busy lately. I&amp;#39;ll try to dig some more into this tomorrow. I would be interested in seeing the result from the oscilloscope, however.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840-DK and nRF52840 Dongle difference during SPI communication with same pins</title><link>https://devzone.nordicsemi.com/thread/264855?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 12:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f330e2-96d5-4c7b-9c01-90abd4ff776b</guid><dc:creator>BLaszlo</dc:creator><description>&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;Hello Simon,&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;Thanks for the response, and previously I recall that I tested the basic SPI communication was working fine even with the DK, but now that I am using the Radio communication along with the SPIS functionality this issue came up. However why I thought it has to do something with the nRF52840 device is because when I change to nRF52840 Dongle this issue is not present at all (which means that the Raspberry side is good in that case).&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;I did not yet check the lines with logic analyzer, but maybe later we will check it on an oscilloscope.&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;My first guess was that something went wrong on my older DK board, but today I checked it with a brand new one and the issue still persists. I am using SPIS 1.&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;Best regards,&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="hu"&gt;Bertalan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840-DK and nRF52840 Dongle difference during SPI communication with same pins</title><link>https://devzone.nordicsemi.com/thread/264635?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 13:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a8cd9d-a811-4469-9bf8-57e69ee48a75</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I just tested this myself with the SPI master example (on nRF52832) and the SPI slave example (on nRF52840) with the pins you selected, and it worked without problems.&lt;/p&gt;
&lt;p&gt;I am not sure what causing this issue? It may be caused by the Raspberry reading on the wrong edges, try changing that.&lt;/p&gt;
&lt;p&gt;Have you checked with a logic analyzer, to see what is actually sent over the lines?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>