<?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 problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61543/spi-problem</link><description>Hi Nordic team, 
 I&amp;#39;m trying to run demo SPI programs from NRF5 SDK. I want to create simple SPI communication between two dongles, of which one would be master and the other one - slave. Both projects (SPIS and SPI) compiled and I can flash them on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2020 09:17:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61543/spi-problem" /><item><title>RE: SPI problem</title><link>https://devzone.nordicsemi.com/thread/251202?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 09:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f927b358-ac32-4369-ae07-670269481a1a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Pinout_1"]thanks for the reply.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="Pinout_1"]I think I solved the problem.[/quote]
&lt;p&gt;I am happy to hear that you were able to resolve your issue.&lt;/p&gt;
[quote user="Pinout_1"]Also I made pin assignments according to the NRF52840 documentation.&amp;nbsp;i think i was wrong&amp;nbsp;when I set them up. And SPI communication started to work.[/quote]
&lt;p&gt;Great. Conferring with the Pin Assignment is very important when working with the SoC&amp;#39;s to ensure that the peripherals will work as intended.&lt;/p&gt;
[quote user="Pinout_1"]I don&amp;#39;t have access to a NRF52840 DK, I&amp;nbsp;have to make&amp;nbsp;Dongle functional, considering that it is not expensive and practical to use.[/quote]
&lt;p&gt;Yes, the dongle is both cheap and practical - a great companion when developing BLE applications, but the DK&amp;#39;s makes it tremendously easier to develop with peripherals and other connections to the boards. I personally highly recommend checking out a DK, if you are going to develop a custom board.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI problem</title><link>https://devzone.nordicsemi.com/thread/251106?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 06:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab42978-7c4d-4a62-bc98-7e026f68a58c</guid><dc:creator>Pinout_1</dc:creator><description>&lt;p&gt;Hi Karl, thanks for the reply.&lt;br /&gt;&lt;br /&gt;I think I solved the problem. On the master side I&amp;nbsp;tried to port&amp;nbsp;nrfx_spim project from the NRF5 SDK, and on the slave side i left the same ported code as before (SPIS project from the SDK). Also I made pin assignments according to the NRF52840 documentation.&amp;nbsp;i think i was wrong&amp;nbsp;when I set them up. And SPI communication started to work.&amp;nbsp;Do not know why, but this is the only one solution&amp;nbsp;which is working for me. Before this, I tried to port SPI example project code from the SDK, but it doesn&amp;#39;t work with SPIS project. However, it works now and I think I will have the opportunity to adapt it.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t have access to a NRF52840 DK, I&amp;nbsp;have to make&amp;nbsp;Dongle functional, considering that it is not expensive and practical to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI problem</title><link>https://devzone.nordicsemi.com/thread/251012?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 13:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e6a829-7baa-40f4-abb5-68686d1fe859</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I&amp;#39;m trying to run demo SPI programs from NRF5 SDK. I want to create simple SPI communication between two dongles, of which one would be master and the other one - slave. Both projects (SPIS and SPI) compiled and I can flash them on the dongles.[/quote]
&lt;p&gt;Neither the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/spi_slave_example.html"&gt;SPIS example&lt;/a&gt;&amp;nbsp;nor the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrfx_spim_example.html"&gt;SPIM example&lt;/a&gt;&amp;nbsp;in the SDK is made for the nRF52840 dongle(PCA10059 board). I assume that you have modified them using the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;Dongle Programming Tutorial&lt;/a&gt;&amp;nbsp;or a similar resource? Could you also confirm which of the examples &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/spi_master_example.html"&gt;SPI&lt;/a&gt;, &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/spi_slave_example.html"&gt;SPIS&lt;/a&gt;, &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrfx_spim_example.html"&gt;SPIM&lt;/a&gt;, &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf_spi_mngr_example.html"&gt;SPI_transaction_manager&lt;/a&gt; examples, and which SDK version you are working with?&lt;br /&gt;&lt;br /&gt;Could you also tell me your pin configuration and SPI configurations on the two dongles?&lt;br /&gt;From your description, it seems that the SPI is not configured/enabled correctly.&lt;/p&gt;
[quote user=""]Also I set pins&amp;nbsp;which are further away from the antenna and which are unused.[/quote]
&lt;p&gt;Did you have a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpin.html"&gt;Pin Assignment&lt;/a&gt;&amp;nbsp;documentation when doing this?&lt;br /&gt;&lt;br /&gt;Do you have access to a Development Kit? Since the Dongle does not have an on-board debugger, many of the conventional embedded programming debugging techniques are unavailable. A DK would enable use of its debugger for the dongle application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI problem</title><link>https://devzone.nordicsemi.com/thread/250607?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 08:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10bb0ea3-d58e-4a44-8cbd-00fb72556f33</guid><dc:creator>Pinout_1</dc:creator><description>&lt;p&gt;&lt;a href="https://imgur.com/a/uM4RfdF"&gt;https://imgur.com/a/uM4RfdF&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the signal is the same on the whole SPI lines&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>