<?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>nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115964/nrfjprog---readqspi-unreliable</link><description>Hello, 
 I have a custom hardware, with an external 128MB QSPI flash memory connected to a nRF5340. My current task at hand, is to store firmware update images for MCUBoot there. The firmware is stored by the application using a custom driver for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2024 11:07:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115964/nrfjprog---readqspi-unreliable" /><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/510266?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 11:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c776b84-a68c-4c92-8683-cbba5a8d72f4</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;I really don&amp;#39;t care, if the non-volatile registers are not changing the behavior (the volatile register do change the behavior), because that is not an issue to me. The chip behaves as documented, the nrf53 peripheral behaves as expected, yet nrfjprog delivers the wrong results.&lt;/p&gt;
&lt;p&gt;If you like, we simply can close this issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m pretty sure, I found two bugs in nrfjprog. I leave it to you, what you are doing with all the details I&amp;#39;ve presented, which toke me probably roughly a day.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/510248?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 09:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0868386d-baba-4182-abcf-8e010bfa38f7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Then I am not sure how you should interact with the external flash chip. If the non-volatile registers seem to reset, you need to reach out to them for how to make the non-volatile registers act non-volatile.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/509836?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 10:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54cfe987-c640-468b-a86b-9997cc26290b</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;The configuration changes nothing in regard to the 4 data bit access. Changing the configuration back to a single data line (FASTREAD), the chip reduces the number of dummy bits to 4 bits and thus obeyed to expectation of nrfjprog. However, nrfjprog still writes 0xF0000000 bytes to disk.&lt;/p&gt;
&lt;p&gt;(I had to use the volatile configuration register; the none volatile showed no effect, even after reseting the chip even though, reading back the register content showed the correct result.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/509813?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 08:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e5a3fb6-6c7b-43e2-bf39-acde535de26b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Looking at the datasheet:&lt;br /&gt;&lt;a href="https://www.datasheet4u.com/datasheet-pdf/Micron/MT25QU01GBBB/pdf.php?id=1225539"&gt;https://www.datasheet4u.com/datasheet-pdf/Micron/MT25QU01GBBB/pdf.php?id=1225539&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Page 25:&lt;br /&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/pastedimage1731313895650v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you please try to set this to 4 (0b0100), and see if that changes the behavior? Since this is non-volatile, it should be sufficient to do this only once.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/509543?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 16:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f695a2-defa-40ed-ab07-cf83f6b70a29</guid><dc:creator>Torsten Robitzki</dc:creator><description>&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/Bildschirmfoto-2024_2D00_11_2D00_07-um-17.43.29.png" /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/qspi_5F00_4bit.sal"&gt;devzone.nordicsemi.com/.../qspi_5F00_4bit.sal&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/509542?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 16:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373a2ec4-7cab-42c2-ba02-14b910634def</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;I tried to boil it down, to an easier to debug problem, by switching to 1 data bit. But ok, I did the same measurements with 4 data bits. The device in question, is the MT25QU01GBBB, a 128MB NOR flash. To address the entire chip, 32 bit addressing is required.&lt;/p&gt;
&lt;p&gt;The expected content of the flash memory is:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000000 3d b8 f3 96 00 00 00 00 00 02 00 00 d0 59 0a 00 |=............Y..|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000010 04 00 00 00 00 01 2a 00 00 00 00 00 00 00 00 00 |......*.........|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Reading 0xEE, 0xAD, 0x7A, 0x49 from the 4 data lines (see screen shot) on the first 8 (data) clocks would be &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b1110`1110, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b1010`1101, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b0100`1001 and&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b0111`1010.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Expected: &lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b0011`1101,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b1011`1000,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b1111`0011,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;- 0b1001`0110&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;which seems to fit the expectation. If I compare the trace with Figure 134 (32-bit READ4O; SPIMODE = MODE0) of v1.3.1 of the nRF5340 data sheet, they seem to match exatly.&lt;/p&gt;
&lt;p&gt;Now, when reading the flash memory content, with `nrfjprog`:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% nrfjprog --readqspi recording.bin --qspiini ./config.toml&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% hexdump -C recording.bin | head&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000000 88 88 3d b8 f3 96 00 00 00 00 00 02 00 00 d0 59 |..=............Y|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000010 0a 00 00 00 00 00 00 01 2a 00 00 00 00 00 00 00 |........*.......|&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Wild guess: When I look at figure 135 of the same data sheet, there are just 6 dummy bits. If the peripheral would be configured to expect only 6 dummy bits, and D3 beeing high during the 7th and 8th dummy bit, clocked out by the flash memory, the peripheral would read 0x88, 0x88 during the first 4 clocks cycles.&lt;/p&gt;
&lt;p&gt;All in all, the problem seems to boil down, to the peripheral starting to read in data 4 clock cycles too early (or expecting 4 dummy bits less, than the memory is sending).&lt;/p&gt;
&lt;p&gt;Again, two oberservations / data points, I would like to stress once more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrfjprog worked for use, before we switched to nRF Connect SDK v2.7.99-cs2.&lt;/li&gt;
&lt;li&gt;nrfjprog worked exactly once, after I&amp;#39;ve update the JLink software&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A few more data points:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Our application uses a custom driver, that accesses the QSPI peripheral directly. That driver does not has that problem.&lt;/li&gt;
&lt;li&gt;We use MCUBoot and MCUBoot uses the `official` nordic driver and this combination also shows no problem.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With all that data points, I really suspect that there is some kind of additional configuration, that `nrfprog` is reading / processing and that this additional configuration, somehow is added / created / introduced by the new `sysbuild` feature.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;
&lt;p&gt;P.S.: I&amp;#39;ve just discovered an other &amp;quot;intersting&amp;quot; data point: When I shrink down the size of the configured size of the memory (mem_size = 0x80 in the toml file), the actual access on the QSPI bus takes just a fraction of a second (as expected). However, nrfjprog runs nearly 20s. The reason, why it takes that long, is that nrfjprog writes 3840MB to disk:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% rm recording.txt &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% ls -la recording.bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;ls: recording.bin: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% time nrfjprog --readqspi recording.bin --qspiini ./config.toml&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;[ #################### ] 0.000s | Reading external memory, 0x0080 bytes @ 0x00000000 - Done &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Storing data in &amp;#39;recording.bin&amp;#39;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrfjprog --readqspi recording.bin --qspiini ./config.toml 19,26s user 2,86s system 98% cpu 22,383 total&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% ls -la recording.bin &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;-rw-r--r-- 1 todi staff 4026531840 7 Nov 16:29 recording.bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;% hexdump -C recording.bin &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000000 88 88 3d b8 f3 96 00 00 00 00 00 02 00 00 d0 59 |..=............Y|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000010 0a 00 00 00 00 00 00 01 2a 00 00 00 00 00 00 00 |........*.......|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000020 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;00000030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;f0000000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Edit: it&amp;#39;s MB, not GB&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/509483?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 14:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e738b4-5d8c-40c3-b7f2-146d0edc0d29</guid><dc:creator>Edvin</dc:creator><description>[quote user="Torsten Robitzki"]&lt;p&gt;Originally, I used&amp;nbsp;read_mode = &amp;quot;READ4O&amp;quot;,&amp;nbsp;write_mode = &amp;quot;PP4IO&amp;quot; and&amp;nbsp;frequency = &amp;quot;M16&amp;quot; in the toml file. That resulted (read by nrfjprog) in reading 0x88, 0x88 as the very first two bytes of every page begin of an empty flash memory.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This sounds very similar to this ticket:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/115845/problem-with-qspi-s25fl064l-flash-memory-and-0xeb-command"&gt;Problem with QSPI S25FL064L flash memory and 0xEB command&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The solution there was some configuration that is written to the external flash&amp;#39;s configuration registers. Perhaps it says somewhere here, but I can&amp;#39;t find the name of the external flash chip, and hence, I don&amp;#39;t know what datasheet to look for.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please specify the flash chip model? And you can try the fix in the ticket in the link if it happens to be the same one, or if you see that it has a different number of dummy bits, other than what we use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508627?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 09:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7074ebcc-5e98-456a-bef3-be41a5c9b8c6</guid><dc:creator>Torsten Robitzki</dc:creator><description>&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/nrfjprog2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Trace is not accepted as being too large. Let me know, if you are interested into the trace, then I would provide you a download link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508626?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 09:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0c6c6b0-d96e-408a-b166-02897e256644</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Originally, I used&amp;nbsp;read_mode = &amp;quot;READ4O&amp;quot;,&amp;nbsp;write_mode = &amp;quot;PP4IO&amp;quot; and&amp;nbsp;frequency = &amp;quot;M16&amp;quot; in the toml file. That resulted (read by nrfjprog) in reading 0x88, 0x88 as the very first two bytes of every page begin of an empty flash memory.&lt;/p&gt;
&lt;p&gt;I changed that settings to the one, that are now in the toml file and nrfjprog started to report these 0x0f bytes at the beginning of every page of an empty flash memory page, while on the logic analyzer trace, clearly 0xff is visible.&lt;/p&gt;
&lt;p&gt;The late start of the MISO line going high, is because, the command on the MOSI line is quite large (0x0b plus 4 times 0x00, as the 32 bit address, plus 8 dummy bits; see 7.25.10 of the nrf5340 data sheet).&lt;/p&gt;
&lt;p&gt;I wrote a small test program, that erased the first page, and wrote that patter to the beginning of the page:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static constexpr std::uint8_t pattern[] = {
    0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
    0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
    0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
    0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Reading that back from the flash memory, using nrfjprog, yields this pattern:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00000000  00 10 20 30 40 50 60 70  80 90 a0 b0 c0 d0 e0 f1  |.. 0@P`p........|
00000010  00 01 12 23 34 45 56 67  78 89 9a ab bc cd de ef  |...#4EVgx.......|
00000020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The traces look like I would expect them (attached in the next messages).&lt;/p&gt;
&lt;p&gt;I think, the most notable data point with this issue is, that it worked _once_ after I&amp;#39;ve installed the newest version of the JLink software (see above).&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508616?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 08:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48991ac6-36d0-43cb-84d8-760300f929e5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I understand.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, it also states that the configs will not be used in the comment above the QSPI pins.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So when changing to normal (non-quad) SPI, and you analyze the pins, and you see the 0xFF using saleae, do you still read 0x0F through the nRF53? Or does the readout change when you are doing these changes?&lt;/p&gt;
&lt;p&gt;What I find a bit strange is the amount of clock ticks before the MISO line goes high:&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/pastedimage1730363267020v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And it is a bit difficult to understand whether the first 0xFF is actually referring to the first byte on the page or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to write something to the first flash page:&lt;/p&gt;
&lt;p&gt;0x01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 ...&lt;/p&gt;
&lt;p&gt;Something like that, and then you can read it back, to check whether the SPI starts at 01, or if it starts somewhere later?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508556?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 15:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e403c11-bbee-4c50-951a-91da0f929eca</guid><dc:creator>Torsten Robitzki</dc:creator><description>&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/pin_5F00_assignment.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508555?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 15:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb217a6-aedb-4a6a-ba75-a59d204ca484</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;thanks for the fast response. No problem, the pins are correctly allocated (see picture in the next post). The custom driver also works and also, nrfjprog has already worked correctly with that hardware. I guess, nrfjprog is ignoring the QSPI pin configuration in the config.toml file (I received that file as an example from a colleague of yours) .&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve corrected the pin configuration in the config.toml file and the behavior stays the same. When I add a mistake into that file, I receive an error, so I&amp;#39;m sure, that the configuration is not totally ignored. I can also see my configured [qspi.custom.instructions] in the logic analyzer trace (which switches the flash memory to use 32 bit addressing).&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508547?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 14:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5a1ab5b-02d2-4506-9a4a-21608eea8bf5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;According to the nRF5340&amp;#39;s QSPI documentation, only the dedicated QSPI pins should be used for QSPI:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/qspi.html#ariaid-title2"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/qspi.html#ariaid-title2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So it could be that what you are seeing is a result of this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it too late to change the GPIOs?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508542?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 14:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc8f8cd-9edb-4ac2-995f-f53a2a4ff16c</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7711.log.log"&gt;devzone.nordicsemi.com/.../7711.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508541?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 14:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9bed7ae-1b4e-4db6-8b7a-7d261380d9e5</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;One addition data point: When I used my original QSPI configuration (read_mode = &amp;quot;READ4O&amp;quot;,&amp;nbsp;write_mode = &amp;quot;PP4IO&amp;quot; and&amp;nbsp;frequency = &amp;quot;M16&amp;quot;), the effect was, that the first two bytes of every empty pages reads as 0x88, 0x88. I will also attach a log file from `nrfjprog`.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508511?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 12:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee7eb73-d51d-418e-9c7c-b3d18f4cce71</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config.toml.txt"&gt;devzone.nordicsemi.com/.../config.toml.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfjprog.sal"&gt;devzone.nordicsemi.com/.../nrfjprog.sal&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --readqspi unreliable</title><link>https://devzone.nordicsemi.com/thread/508510?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 12:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc14930-ade4-42e1-8a7a-bfb9d0c3f65d</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;In the Safari version of this forum, every file upload erases the entire message, I will attache the other files in the next messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>