<?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 master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22923/spi-master-and-slave-loop-back-test-but-the-slave-is-receive-0x00-bytes-at-all</link><description>Hi everyone, 
 I am using NRF52832 and I use SPI as communication protocol. I check my SPI master by connect its MOSI and MISO pins together, and it works correctly. Now I want to check my SPI slave. I connect SPI slave and SPI master as below: 
 SPI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Sep 2018 10:43:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22923/spi-master-and-slave-loop-back-test-but-the-slave-is-receive-0x00-bytes-at-all" /><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/149801?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 10:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29609fe7-0dd1-4a58-aa81-768598edb6b1</guid><dc:creator>PartTimeCode</dc:creator><description>&lt;p&gt;I changed the slave pins to GPIO Pins (with no additional functionality) which gives me correct output. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/149744?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 06:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac08dc4-b597-48b9-a99d-d0803202b5e7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;GPIOs P0.05-P0.08 is used for the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/vir_com_port.html?cp=2_1_4_4_1"&gt;UART interface&lt;/a&gt; on the nRF52 DK. Did you &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/solderbridge.html?cp=2_1_4_5_11"&gt;cut SB22-25&lt;/a&gt; to disconnect the pins from the interface MCU, and make sure you do not initialize UART or NRF_LOG with UART backend in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/149723?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 02:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc6e965-49fa-423b-a3dc-9f361fbd2e11</guid><dc:creator>PartTimeCode</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am new to Nordic. I am also trying to create an SPI master and Slave on a single nRF52832 (PCA10040) Development&amp;nbsp;board with SDK Version 15.0. I have created a slave instance in the SPI example (using SPIS example as reference).&lt;/p&gt;
&lt;p&gt;Pin mapping:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table width="262"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="64"&gt;#&lt;/td&gt;
&lt;td width="70"&gt;PIN NAME&lt;/td&gt;
&lt;td width="64"&gt;MASTER&lt;/td&gt;
&lt;td width="64"&gt;SLAVE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;MISO&lt;/td&gt;
&lt;td&gt;Pin 28&lt;/td&gt;
&lt;td&gt;Pin 05&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;MOSI&lt;/td&gt;
&lt;td&gt;Pin 04&lt;/td&gt;
&lt;td&gt;Pin 06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;CSN&lt;/td&gt;
&lt;td&gt;Pin 29&lt;/td&gt;
&lt;td&gt;Pin 07&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;CLK&lt;/td&gt;
&lt;td&gt;Pin 03&lt;/td&gt;
&lt;td&gt;Pin 08&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;My issue is that the master is receiving the correct data but the slave is not.&lt;/p&gt;
&lt;p&gt;I have checked on logic anlayzer, data on MOSI pin is valid, however, slave receive buffer does not show me correct data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/135641?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 23:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b4ee82-dde5-4930-aa70-f3fa5ac01899</guid><dc:creator>pwgh</dc:creator><description>&lt;p&gt;A bit late... but have you checked that the boards share a common ground?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/90169?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 08:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebb464f-a732-4b63-b70f-04bc5957baab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you modified the PCA10040 board? Note that P0.13-P0.18 is used for buttons and LEDs, and might not work with other peripherals without modification to the board and application. Could you upload your code for debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/90168?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 08:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f4e742-875a-4715-81bf-519b58e870c0</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;hi Jørgen Holmefjord,&lt;/p&gt;
&lt;p&gt;I set up SPIM0 as master and SPIS1 as slave and I use pins below&lt;/p&gt;
&lt;p&gt;SPI master------SPI slave&lt;br /&gt;
p13 MOSI-------------MOSI p17&lt;br /&gt;
p14 MISO-------------MISO p18&lt;br /&gt;
p12 SCK--------------SCK   p16&lt;br /&gt;
p11 CSN--------------CSN  p15&lt;/p&gt;
&lt;p&gt;I also check SPI lines with a oscilloscope and it work correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/90165?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 08:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b65b347-e47a-4e14-81b5-aedff89d49b5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What is the slave device? Which pins are you using on the PCA10040? Have you checked the SPI lines with a logic analyzer to see if it is actually sending anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/90166?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 08:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dca6922c-2433-4079-b2d4-8d08a1538f45</guid><dc:creator>huaminhtuan</dc:creator><description>&lt;p&gt;I have checked pins, they are correct and I am using SDK 13.0.0. I have only 1 PCA10040, nRF52832 board, and I create 1 SPI master 0 and 1 SPI slave 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master and slave loop back test, but the slave is receive 0x00 bytes at all</title><link>https://devzone.nordicsemi.com/thread/90167?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 13:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d85116-2040-44f1-8ab4-3d502ba431d3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you sure you connected the correct pins? Do you use the spi and spis examples in the SDK? Which SDK version are you using? Are you trying this with two nRF52 DKs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>