<?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>SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121026/spim-receive-data-is-always-1bit-shift-thingy91</link><description>Hello, I searched the forum for similar issues and found a few, such as 
 I am currently implementing a PSRAM is66wvs4m8 on the Thingy 91 via SPI, using SPIM3. 
 The problem I&amp;#39;m facing is that the data I read is shifted. I’ve attached a ZIP file containing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 May 2025 11:23:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121026/spim-receive-data-is-always-1bit-shift-thingy91" /><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534448?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 11:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3b59c86-b8f8-43c1-aa8f-cff7a9931d74</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that you got it working!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534423?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc3ebf1c-6bf5-4057-9c59-ca2b67aca998</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I think it was a hardware problem, maybe because of connect the logic analyzer (3v3) to the Thingy&amp;#39;s SPI pins (1v8)... I have changed the psram and it works as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534310?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 14:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e03870d-c396-4500-9d21-85ecf986dffc</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I&amp;#39;m investigating this today and making these changes.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;However, I actually set since the beginning the ADXL chip selects to 1 during test initialization. With your changes, SPI behavior doesn&amp;#39;t change.&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Could you please review the ZIP file?&lt;/span&gt;&lt;/span&gt; &lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Maybe I&amp;#39;m missing something.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2654.psram.zip"&gt;devzone.nordicsemi.com/.../2654.psram.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534299?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 13:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b2e2c7-2d0d-4d46-a2e3-c41bc2edf5a3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think I found the issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you look at the compiled zephyr.dts file in build/psram/zephyr/zephyr.dts folder, you can see that the spi3 node looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;			spi3: spi@b000 {
				compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
				#address-cells = &amp;lt; 0x1 &amp;gt;;
				#size-cells = &amp;lt; 0x0 &amp;gt;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				max-frequency = &amp;lt; 0x7a1200 &amp;gt;;
				easydma-maxcnt-bits = &amp;lt; 0xd &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				cs-gpios = &amp;lt; &amp;amp;gpio0 0xa 0x1 &amp;gt;;
				pinctrl-0 = &amp;lt; &amp;amp;spi3_default &amp;gt;;
				pinctrl-1 = &amp;lt; &amp;amp;spi3_sleep &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
				adxl362: adxl362@0 {
					compatible = &amp;quot;adi,adxl362&amp;quot;;
					spi-max-frequency = &amp;lt; 0x7a1200 &amp;gt;;
					reg = &amp;lt; 0x0 &amp;gt;;
					int1-gpios = &amp;lt; &amp;amp;gpio0 0x9 0x0 &amp;gt;;
				};
				adxl372: adxl372@1 {
					compatible = &amp;quot;adi,adxl372&amp;quot;;
					spi-max-frequency = &amp;lt; 0x7a1200 &amp;gt;;
					reg = &amp;lt; 0x1 &amp;gt;;
					int1-gpios = &amp;lt; &amp;amp;gpio0 0x6 0x0 &amp;gt;;
				};
				reg_my_spi_master: spi-dev-a@0 {
					reg = &amp;lt; 0x0 &amp;gt;;
				};
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It looks like the adxl and reg_my_spi_master points to index 0 of the &amp;quot;cs-gpios&amp;quot; structure, which will cause some adxl-specific commands to be sent to your PSRAM IC.&lt;/p&gt;
&lt;p&gt;In your overlay, declare the other cs-gpios, to ensure that they are inactive and change the reg to point to &amp;#39;2&amp;#39;, as done here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_LOW&amp;gt;, &amp;lt;&amp;amp;gpio0 7 GPIO_ACTIVE_LOW&amp;gt;, &amp;lt;&amp;amp;gpio0 10 GPIO_ACTIVE_LOW&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    reg_my_spi_master: spi-dev-a@2 {
		reg = &amp;lt;2&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the other CS pins are floating, the other sensors can start shifting data out on the MISO line, causing corruption/collision on the bus.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534202?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 06:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daac266b-a30a-4c0f-aacb-86839a6148b6</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Yes, I am using TP7, and I had cut SB14.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_05_2D00_07-10_2D00_37_2D00_05.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534148?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 15:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78c01de2-43bd-4729-b157-18a4227d1a61</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="PedroR"]Here, it stops between each byte, and in the NRF not. What do you think? [/quote]
&lt;p&gt;That should not have an impact, unless the IC has very&amp;nbsp;unusual timing requirements.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you confirm the pins that you use? Is it P0.10 for CSN?&lt;/p&gt;
&lt;p&gt;If yes, then this is by default connected to the RESET pin of the nRF52 device on thingy91:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1663.pastedimage1746545703605v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Meaning that SB14 needs to be cut in order to use this as a normal GPIO.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/534144?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 14:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e72ccb7-e122-4d05-ba20-c01335f4a645</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I tried it with a different microcontroller (RP2040) with a 3v3 PSRAM instead of 1.8v, and it works with the same SPI mode and 500KHz. The only difference that I can imagine is related with the clock signal. Here, it stops between each byte, and in the NRF not. What do you think? How can I fix it in the Thingy91?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_05_2D00_06-16_2D00_44_2D00_11.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/533428?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c95e9025-e0db-449e-95af-4aa78cef576d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="PedroR"]0xee&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11101110 -&amp;gt; (0xdb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011011) (0x6d&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01101101) (0xb6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10110110) Same patron again in different order.[/quote]
&lt;p&gt;I am sorry, but I do not see the same pattern as you here as compared to your original written pattern.&lt;/p&gt;
&lt;p&gt;Writing all &amp;#39;0xee&amp;#39;, then&amp;nbsp;reading 0xdb, and 0x6d, and then 0xb6.&lt;/p&gt;
&lt;p&gt;This does not reflect the original written data. Since you do not have control over what is actually written to the device, you can not trust the read out either.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Start with reading a known register and see how that behaves.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/533408?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e724da7-2d6b-4387-9fab-779108a4d991</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Take a look when I write these bytes, and the generated patrons:&lt;/p&gt;
&lt;p&gt;0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011 -&amp;gt; (0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100) (0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010) (0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001) Bit shifting to the right.&lt;/p&gt;
&lt;p&gt;0x66 0b01100110 -&amp;gt; (0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001) (0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100) (0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010) Bit shifting to the right, and repeated data in different order.&lt;/p&gt;
&lt;p&gt;0x77 0b01110111 -&amp;gt; (0x6d&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01101101) (0xb6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10110110)&amp;nbsp; (0xdb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011011)&amp;nbsp; Different patron with three 1 in the written value.&lt;/p&gt;
&lt;p&gt;0x99&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10011001 -&amp;gt; (0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100) (0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010)&amp;nbsp; (0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001) Again, same values as 0x33 or 0x66 with different order.&lt;/p&gt;
&lt;p&gt;0xbb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10111011 -&amp;gt; (0x6d&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01101101) (0xb6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10110110) (0xdb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011011) Same patron as 0x77 with three continuous 1.&lt;/p&gt;
&lt;p&gt;0xcc&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11001100 -&amp;gt; (0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010) (0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001) (0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100) Same patron as two continuous 1 with different order.&lt;/p&gt;
&lt;p&gt;0xdd&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011101 -&amp;gt; (0xb6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10110110) (0xdb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011011)&amp;nbsp; (0x6d&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01101101) Same as 0xbb or 0x77 with different order.&lt;/p&gt;
&lt;p&gt;0xee&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11101110 -&amp;gt; (0xdb&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11011011) (0x6d&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01101101) (0xb6&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10110110) Same patron again in different order.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;0xff&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11111111 -&amp;gt; 0xff well stored.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think there are a clear patron depending on the continuous number of bits set to 1 in the written number and their evolution. Which can be confusing is the last 4 bytes, which seems random, but this is because of the number of bytes that I am writing. If I write 32 and read 16, for example, instead of 16-16, the patron will continue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/533388?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 12:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6352be-40a5-4615-a490-bf73bc614721</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="PedroR"]You can see these patterns when I write a byte with two continuous bits settled to 1.[/quote]
&lt;p&gt;Sorry, but I do not see a clear pattern here. Example: Writing all &amp;#39;0xbb&amp;#39; does not give you a consistent read back content.&lt;/p&gt;
&lt;p&gt;Please point directly to the example where this happens, and also share the saleae trace file of this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As previously mentioned, you are not able to read out the static IDs correctly, so something is quite off here. I would strongly recommend on focusing to read out these 64 bits correctly before trying to r/w any data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/533296?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 06:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e633941-475d-4269-8d15-1240a10ee113</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;You can see these patterns when I write a byte with two continuous bits settled to 1.&lt;/p&gt;
&lt;p&gt;The answer, despite the values are wrong, it is creating these patrons. The bytes in the logic analyzer seems equal between them (0x24, 0x92, 0x49... truly, seems such a PWM signal, but wrongly parsed with the clock or misaligned, I do not know). &lt;/p&gt;
&lt;p&gt;The case is the PSRAM is answering the commands, and storing in the memory some values (if not, these patrons cannot be possible...).&amp;nbsp; So I guess some things are working properly. &lt;/p&gt;
&lt;p&gt;The wires are well-connected, and the timing restrictions should not be a problem, reviewing the datasheet and the logic analyzer samples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Receive data is always 1bit shift Thingy91</title><link>https://devzone.nordicsemi.com/thread/533210?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 13:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19bba32-a982-4523-883c-c202b20609ae</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]D: Writing 16 bytes to address 0x000c00&lt;br /&gt;D: SPI TX[0]:&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x02&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000010&lt;br /&gt;D: SPI TX[1]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI TX[2]:&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0c&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00001100&lt;br /&gt;D: SPI TX[3]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI TX[4]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[5]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[6]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[7]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[8]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[9]:&amp;nbsp;&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[10]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[11]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[12]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[13]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[14]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[15]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[16]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[17]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[18]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: SPI TX[19]:&amp;nbsp; 51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00110011&lt;br /&gt;D: memc_is66wvs4m8_write: 0&lt;br /&gt;D: Reading 16 bytes from address 0x00000c00&lt;br /&gt;D: SPI RX[0]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI RX[1]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI RX[2]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI RX[3]:&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000000&lt;br /&gt;D: SPI RX[4]:&amp;nbsp;&amp;nbsp; 36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100&lt;br /&gt;D: SPI RX[5]:&amp;nbsp;&amp;nbsp; 146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010&lt;br /&gt;D: SPI RX[6]:&amp;nbsp;&amp;nbsp; 73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001&lt;br /&gt;D: SPI RX[7]:&amp;nbsp;&amp;nbsp; 36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100&lt;br /&gt;D: SPI RX[8]:&amp;nbsp;&amp;nbsp; 146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010&lt;br /&gt;D: SPI RX[9]:&amp;nbsp;&amp;nbsp; 73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001&lt;br /&gt;D: SPI RX[10]:&amp;nbsp; 36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100&lt;br /&gt;D: SPI RX[11]:&amp;nbsp; 146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010&lt;br /&gt;D: SPI RX[12]:&amp;nbsp; 73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001&lt;br /&gt;D: SPI RX[13]:&amp;nbsp; 36&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x24&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00100100&lt;br /&gt;D: SPI RX[14]:&amp;nbsp; 146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x92&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10010010&lt;br /&gt;D: SPI RX[15]:&amp;nbsp; 73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x49&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b01001001&lt;br /&gt;D: SPI RX[16]:&amp;nbsp; 130&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x82&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b10000010&lt;br /&gt;D: SPI RX[17]:&amp;nbsp; 62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3e&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00111110&lt;br /&gt;D: SPI RX[18]:&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x03&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b00000011&lt;br /&gt;D: SPI RX[19]:&amp;nbsp; 253&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xfd&amp;nbsp;&amp;nbsp;&amp;nbsp; 0b11111101[/quote]
&lt;p&gt;I am unable to see a pattern here that matches your description:&lt;/p&gt;
[quote user=""]The problem I&amp;#39;m facing is that the data I read is shifted. I[/quote]
&lt;p&gt;0x33 shifted, either way, is not equal to the data that you read back. There are bit flips in addition, making this a more random pattern than a direct shift.&lt;/p&gt;
&lt;p&gt;This is similar in all your other write/reads.&lt;/p&gt;
[quote user=""]D: Manufacturer ID: 0x31&lt;br /&gt;D: KGD: 0x85&lt;br /&gt;D: Device Density: 8 Mb&lt;br /&gt;E: Error: Manufacturer ID does not match expected value of 0x9d&lt;br /&gt;E: Error: Could not read vendor id&lt;br /&gt;D: memc_is66wvs4m8_init: -5[/quote]
&lt;p&gt;This also seems to be a mismatch. Are you certain that you have connected MISO/MOSI correctly between your devices?&lt;/p&gt;
&lt;p&gt;Have you checked if there are any power-up restrictions/timing or similar on this device?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>