<?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>the SPI Lookback example running on nrf5340dk and nrf52840dk output different as expected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81275/the-spi-lookback-example-running-on-nrf5340dk-and-nrf52840dk-output-different-as-expected</link><description>Hi all, 
 when I follow the blog as below, find the actual output is not same as expected. 
 Adding a Peripheral to an NCS Zephyr project - Peripherals And RF Test - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com) 
 The output what I got as following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Nov 2021 06:23:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81275/the-spi-lookback-example-running-on-nrf5340dk-and-nrf52840dk-output-different-as-expected" /><item><title>RE: the SPI Lookback example running on nrf5340dk and nrf52840dk output different as expected</title><link>https://devzone.nordicsemi.com/thread/337599?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 06:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c20987-79d3-465e-90e1-36451849b651</guid><dc:creator>scottwan</dc:creator><description>&lt;p&gt;finally it works after I changed the pin used and the project configuration.&lt;/p&gt;
&lt;p&gt;the board overlay file changed as below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spis&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;41&amp;gt;;
	mosi-pin = &amp;lt;40&amp;gt;;
	miso-pin = &amp;lt;39&amp;gt;;
	csn-pin = &amp;lt;38&amp;gt;;
	
	def-char = &amp;lt;0xC3&amp;gt;;
};

&amp;amp;spi2 { 
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;; 
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;4&amp;gt;;
	mosi-pin = &amp;lt;5&amp;gt;;
	miso-pin = &amp;lt;6&amp;gt;;

	cs-gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_LOW&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the prj.conf file changed as below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#

CONFIG_SPI=y

# CONFIG_SPI_1=y
CONFIG_SPI_SLAVE=y
# CONFIG_SPI_1_OP_MODES=2

# CONFIG_SPI_2=y
# CONFIG_SPI_2_OP_MODES=1
# CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58=y

# CONFIG_USE_SEGGER_RTT=y
# CONFIG_RTT_CONSOLE=y
# CONFIG_UART_CONSOLE=n&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the SPI Lookback example running on nrf5340dk and nrf52840dk output different as expected</title><link>https://devzone.nordicsemi.com/thread/337444?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 11:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d7cfae-aea6-41bc-88c7-730d2b42f0fb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did not run this steps from the blogpost, but a closer look to your logs show that you are using pin numbers 22,23,24 and 25 on nRF5340 DK (same numbers as shown in the github example for nRF52 DK).&lt;/p&gt;
&lt;p&gt;But note that on nRF5340 DK &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_DK_User_Guide_20210304.pdf"&gt;(assigned pins for buttons and Leds)&lt;/a&gt;&amp;nbsp;Section&amp;nbsp;4.7 Buttons and LEDs that gpio pin 23 and 24 are used for buttons and cannot be used for SPI in your example. Please used some unassigned pin numbers for SPI. You will see all pre assigned pin numbers at the back of your DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the SPI Lookback example running on nrf5340dk and nrf52840dk output different as expected</title><link>https://devzone.nordicsemi.com/thread/337218?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 09:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ee3ea2a-0a84-4665-a6df-a9cb0952c5db</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like there might be some adjustments to do with nRF53 as that blog is written for nRF52. I have not tested it myself, but can do it tomorrow to see if i find some differences that needs to be adjusted in configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>