<?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>[nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100186/nrf52840dk-nrfjprog-always-reading-external-flash-least-significant-bit-as-0</link><description>I&amp;#39;m trying to use nrfjprog to read and write the mx25r6435f external flash on the nRF52840dk board (I have version 3.0.0). However, what I am noticing is that nrfjprog always reads the least significant bit of every byte as 0. For example: 
 
 and then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jun 2023 14:39:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100186/nrf52840dk-nrfjprog-always-reading-external-flash-least-significant-bit-as-0" /><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429363?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 14:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf5d0fa-10aa-4b9e-b6e6-ffa437776f0e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfjprog is as little intrusive as possible, so there is normally no reset when trying to read/write QSPI flash, so the SPIM0 peripheral is not reset in this case, which seems to&amp;nbsp;cause problems as it was configured to use one if the QSPI pins. So you need to somehow ensure that SPIM0 does not use the pin. That could be by reconfiguring your firmware, erasing the firmware or something else. Or you could simply perform a reset.&lt;/p&gt;
&lt;p&gt;The following script python script using pynrfjprog demonstrate how to to reset the device halt it an read QSPI memory. I did not get a chance to test with a device that has the pin configured with SPM0 today, but hopefully it would work (for a device that does not it dumps the first 0x100 bytes from QSPI memory successfully):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;from pynrfjprog import LowLevel

segger_serial_number = 683741650
with LowLevel.API(&amp;#39;NRF52&amp;#39;) as api:
    api.connect_to_emu_with_snr(segger_serial_number)
    api.sys_reset()
    api.halt()
    api.qspi_configure()
    api.qspi_init()
    data = api.qspi_read(0, 0x100) # Reading
    print(data)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429066?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 17:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e984898a-f5c1-4e3a-8163-b9af4bb17c3c</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve tracked this down. I&amp;#39;m using the same QSPI lines as normal SPI to read and write the mx25r6435f flash chip from the nrf52840 itself. It seems like somehow configuring the MOSI pin (P0.21 on the nRF52840) with the spim0 peripheral causes that pin to be held low, resulting in the LSB of each nibble reading 0. When I remove the code that setups the SPI interface to read the external flash in our software, reading the flash through nrfjprog works as expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How should I make these two use cases co-exist? Is the correct approach to make sure the SPIM0 peripheral is disabled when not in active use, because when it is enabled it seems to hold MOSI low?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429060?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 16:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3c7082-7d9d-4114-a981-4b55cfe3ccdb</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve found a way to get the QSPI read to work as expected (dk 3.0.0):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd 0x12000000 --log
0x12000000: EEEEEEEE                              |....|
$ nrfjprog --eraseuicr
Erasing UICR flash area.
Applying system reset.
$ nrfjprog --memrd 0x12000000 --log
0x12000000: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I look at the UICR:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;❯ nrfjprog --version
nrfjprog version: 10.17.3 external
JLinkARM.dll version: 7.80c
❯ nrfjprog --memrd 0x12000000 --log
0x12000000: EEEEEEEE                              |....|
❯ nrfjprog --readuicr uicr.bin
Storing data in &amp;#39;uicr.bin&amp;#39;.
❯ hexdump -C uicr.bin
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000200  21 00 00 00 21 00 00 00  5a 00 00 00 ff ff ff ff  |!...!...Z.......|
00000210  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00001000





❯ nrfjprog --eraseuicr
Erasing UICR flash area.
Applying system reset.
❯ nrfjprog --memrd 0x12000000 --log
0x12000000: FFFFFFFF                              |....|
❯ nrfjprog --readuicr uicr_erased.bin
Storing data in &amp;#39;uicr_erased.bin&amp;#39;.
❯ hexdump -C uicr_erased.bin
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000200  ff ff ff ff ff ff ff ff  5a 00 00 00 ff ff ff ff  |........Z.......|
00000210  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00001000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Why does setting the reset pin affect the QSPI connection? For this test I changed the reset pin to a random GPIO and it still doesn&amp;#39;t work. For all previous tests the reset pin has been the standard P0.18. So it doesn&amp;#39;t seem to be &lt;em&gt;which&lt;/em&gt; reset pin, just if one is set.&lt;/p&gt;
&lt;p&gt;This also raises the question of how this issue isn&amp;#39;t affecting more users (no one using the QSPI? something else happening?).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429037?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 13:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f1553c-015a-49aa-81dc-299045a85710</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to see if any other variables correlate. Here are the jlink firmware versions flashed on my two nrf52840dks:&lt;/p&gt;
&lt;p&gt;nrf52840dk 3.0.0 (2022.36) [qspi flash read fails]&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;J-Link&amp;gt;h
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-nRF5340-NordicSemi compiled Nov  7 2022 16:22:01
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 00m 05s
S/N: 1050271823
USB speed mode: Full speed (12 MBit/s)
VTref=3.300V
Target connection not established yet but required for command.
Device &amp;quot;NRF52&amp;quot; selected.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nrf52840dk 1.1.0 (2019.12) [qspi flash read works]&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;J-Link&amp;gt;h
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-nRF5340-NordicSemi compiled Nov  7 2022 16:22:01
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 00m 05s
S/N: 1050271823
USB speed mode: Full speed (12 MBit/s)
VTref=3.300V
Target connection not established yet but required for command.
Device &amp;quot;NRF52&amp;quot; selected.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Obviously they are different because of the different hardware, but they have the same compilation date. I&amp;#39;m not sure if this could even have any effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429030?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 13:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9686662d-1280-4761-aeb1-57c480c4d262</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I had a colleague try:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nRF52840dk 2.0.1 (2020.13)&lt;/li&gt;
&lt;li&gt;Ubuntu 22.04&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd 0x12000000 --log
0x12000000: EEEEEEEE                              |....|
$ nrfjprog --version
nrfjprog version: 10.8.0 
JLinkARM.dll version: 6.44&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Different nrfjprog versions but same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429027?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 13:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95c2f6ff-243e-493b-ad79-a08e3c3ece9a</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I just tried with a different nrf52840dk 3.0.0 (2022.36) on Mac:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --qspieraseall
WARNING: An operation that can take up to several minutes is being executed.
WARNING: Please remain patient.
Initializing the QSPI peripheral.
Erasing.
Uninitializing the QSPI peripheral.
$ nrfjprog --version
nrfjprog version: 10.17.3 external
JLinkARM.dll version: 7.80c
$ nrfjprog --memrd 0x12000000 --log
0x12000000: EEEEEEEE                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Same behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/429023?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 13:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e034a91-ecec-40d0-b136-905b0c0e5a3f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is interesting. However, I have not been able to reproduce on a&amp;nbsp;nrf52840 DK version 3.0.0 either. Can you try downgrading Segger J-Link to 7.80c which is the version we&amp;nbsp;curently support with the lates nRF Command Line tools?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/428838?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 19:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edfc65d6-bb22-4e14-8f61-8b74b18dd539</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I tried on windows with three nrf52840dks:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Windows\System32&amp;gt;nrfjprog --version
nrfjprog version: 10.18.1 external
JLinkARM.dll version: 7.82a&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;1.1.0 (2019.12):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Windows\System32&amp;gt;nrfjprog --memrd 0x12000000
[ #####                ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[                      ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[ #################### ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - Done

0x12000000: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.0.1 (2020.14):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Windows\System32&amp;gt;nrfjprog --memrd 0x12000000
[ #####                ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[                      ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[ #################### ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - Done

0x12000000: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3.0.0 (2022.36):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Windows\System32&amp;gt;nrfjprog --memrd 0x12000000
[ #####                ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[                      ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - 0x0000 of 0x0004       
[ #################### ]   0.000s | Reading external memory, 0x0004 bytes @ 0x00000000 - Done

0x12000000: EEEEEEEE                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That points to something about the change to the 3.0.0 revision of the nrf52840dk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/428821?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 16:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a07cd3b-cb45-4d00-9460-d2a48dd564d6</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I found an older nRF52840dk to try on mac.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --version
nrfjprog version: 10.17.3 external
JLinkARM.dll version: 7.86h&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nRF52840dk v1.1.0 (2019.12):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --qspieraseall
WARNING: An operation that can take up to several minutes is being executed.
WARNING: Please remain patient.
Initializing the QSPI peripheral.
Erasing.
Uninitializing the QSPI peripheral.
$ nrfjprog --memrd 0x12000000 --log
0x12000000: FFFFFFFF                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nRF52840dk v3.0.0 (2022.36):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --qspieraseall
WARNING: An operation that can take up to several minutes is being executed.
WARNING: Please remain patient.
Initializing the QSPI peripheral.
Erasing.
Uninitializing the QSPI peripheral.
$ nrfjprog --memrd 0x12000000 --log
0x12000000: EEEEEEEE                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, on my machine at least, even with nrfjprog 10.17.3, there is something different about the newer nRF52840dk in how it reads the external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/428753?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 13:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542d4ec4-d124-4946-bfb7-4fb1f78f8b7a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is interesting. I&amp;nbsp;have&amp;nbsp;been&amp;nbsp; testing on Ubuntu and it works as expected on my end (with nrfjprog 10.17.3 as there are &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93533/nrfjprog---qspisectorerase-broken-after-upgrade-to-command-line-tools-10-18-1"&gt;QSPI memory related issues&lt;/a&gt; with newer nrfjprog releases). I will test on macOS as well and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/428571?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 20:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c5b0e3-0b00-4d44-b96f-4e6e6cc412c8</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried every version on Mac from 10.13.0 to 10.21.0 with the same result. I&amp;#39;ve tried with two different 3.0.0 dk boards.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I asked a colleague to try, with Ubuntu 22.04, an older nrf52840dk, and nrjprog 10.8.0, with the same result.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another colleague on Ubuntu 20.04, older dk, and nrfjprog 10.12.1, had it work as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/428348?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 08:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e6061af-4319-4430-addf-d64c1c2dd3e2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have never seen anything like this before.&amp;nbsp;I see you have tested with some old nrfjprog versions, which is the newest version you have tested? The latest version depend on the host, but if for instance using Linux (64 bit), the latest is 10.21.0.&lt;/p&gt;
&lt;p&gt;Also, do you have another nRF52840 DK that you can test to see if you see the same on that one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840dk] nrfjprog always reading external flash least significant bit as 0</title><link>https://devzone.nordicsemi.com/thread/427888?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 17:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:721aad15-4ea0-4115-945a-e2fcd4de5278</guid><dc:creator>Brad Campbell</dc:creator><description>&lt;p&gt;Including the example of programming specific data:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --qspisectorerase --program a.hex --verify
[ #################### ]   0.144s | Erase file - Done erasing
[ #################### ]   0.217s | Program file - Done programming
[error] [  nRF52] - Failed while performing Verify operation on target address 301989910. one
-160: Data does not match in address range [0x12000000 - 0x12000015] (XIP)
Expected byte value 0x65 but read 0x64 at address 0x12000001.
[error] [  nRF52] - Failed while verifying device. -160: Data does not match in address range [0x12000000 - 0x12000015] (XIP)
Expected byte value 0x65 but read 0x64 at address 0x12000001.
[error] [ Worker] - Data does not match in address range [0x12000000 - 0x12000015] (XIP)
Expected byte value 0x65 but read 0x64 at address 0x12000001.
[error] [ Client] - Encountered error -160: Command verify_file executed for 179 milliseconds with result -160
ERROR: Write verify failed.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The contents of the file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ hexdump -C a.bin
00000000  68 65 6c 6c 6f 20 66 72  6f 6d 20 74 6f 63 6b 20  |hello from tock |
00000010  66 6c 61 73 68 0a                                 |flash.|
00000016&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Trying to read flash after the program using nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --readqspi f.bin
...
$ hexdump -C f.bin
00000000  68 64 6c 6c 6e 20 66 62  6e 6c 20 64 6e 62 6a 20  |hdlln fbnl dnbj |
00000010  66 6c 60 62 68 0a ee ee  ee ee ee ee ee ee ee ee  |fl`bh...........|
00000020  ee ee ee ee ee ee ee ee  ee ee ee ee ee ee ee ee  |................|
*
00800000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And reading some of flash from the actual nRF52840:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Finished read! 30
0x68
0x65
0x6c
0x6c
0x6f
0x20
0x66
0x72
0x6f
0x6d
0x20
0x74
0x6f
0x63
0x6b
0x20
0x66
0x6c
0x61
0x73
0x68
0x0a
0xee
0xee
0xff
0xff
0xff
0xff
0xff
0xff&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So the actual contents of the flash are correct, it&amp;#39;s nrfjprog that is reading them incorrectly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>