<?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 write verify failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46809/nrfjprog-write-verify-failed</link><description>With any nrfjprog (9.8, 9.7, WIndows 10) I get ERROR: Write verify failed. 
 &amp;quot;C:\Program Files\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --verify s.hex 
 I&amp;#39;m able to program my device using nRFgo Studio or J-Flash - it programs and verifies</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2019 10:58:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46809/nrfjprog-write-verify-failed" /><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/185920?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 10:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7603cd-0f93-4452-9930-368f64cd2f02</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Very strange behavior! But glad to hear it is working.&lt;/p&gt;
&lt;p&gt;I will discuss this with my team and see if I can find&amp;nbsp;the reason.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/185919?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 10:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e5461a-191e-48d5-a4d0-baf3a2e99a05</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Very strange behavior! But glad to hear it is working.&lt;/p&gt;
&lt;p&gt;I will discuss this with my team and see if I can find&amp;nbsp;the reason.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/185916?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 10:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdc51243-ad81-4e4a-8675-37e8acab9434</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;Yes, --ids lists all debuggers connected to my PC. I also tried to specify correct serial number using -s argument and it produces the same error.&lt;/p&gt;
&lt;p&gt;But I have just noticed that --rbp ALL works - my device is protected and I have to recover it when I want to write to it again. So the error message is again somehow confusing...but it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/185847?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 08:09:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d6b59d-f975-4b00-9188-7d87ac96c3e6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Does is it not work with nrfjprog --ids? Ref. case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46772/nrfjprog-no-debugger-connected"&gt;228271&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/185807?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 21:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb443698-3f6a-4252-9353-fd8c5d1ed678</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I want to enable readback protection for nrf52 but I get the same error:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 -c 1000 --rbp ALL&lt;br /&gt;ERROR: There is no debugger connected to the PC with the given serial number.&lt;/p&gt;
&lt;p&gt;Can you please advise what could be wrong in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184955?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 14:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2eff84f-06fa-49d5-9dcc-ef6458af1547</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I use Segger J-link.&lt;/p&gt;
&lt;p&gt;To summarize it: nRFgo studio works (don&amp;#39;t know what speed it sets), J-Flash works (8 MHz, didn&amp;#39;t test more) and nrfjprog works only for nrf51 (-f nrf51; didn&amp;#39;t test with speed explicitly set).&lt;/p&gt;
&lt;p&gt;nrfjprog with -f nrf52 fails with speed &amp;gt; 1000.&lt;/p&gt;
&lt;p&gt;I will try it on different PC also...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184951?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 14:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2f40c2-33fb-4884-be44-2437c21e27e2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;The valid clockspeed for nrfjprog is between 125 kHz and 50000 kHz. What programming tool are you using?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Segger J-Flash is a more developed tool and may&amp;nbsp;have more safety features when it comes to writing flash compared to nrfjprog.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184929?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 13:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e3e623c-b68b-4346-be99-25867f5235d4</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;You are right,&amp;nbsp;it is about the speed. I can use max -c 1000 with nrfjprog. When I set -c 1001 and higher it stops working. It is weird as I can set even 8 MHz in J-Flash utility and it programs and verifies it.&lt;/p&gt;
&lt;p&gt;My cablee is 20 cm long dupont cable.&lt;/p&gt;
&lt;p&gt;Any idea why is nrfjprog sensitive to speed setting and other programming utilities (J-Flash) not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184922?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 13:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df5eaf7-5267-48e7-ad01-e28d41b95e68</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="gaminn"]It failed to verify at 0x3C - 0x3F address.[/quote]
&lt;p&gt;How do you now it failed to verify at this address? I can&amp;#39;t see any difference between yours and mine in that address range.&amp;nbsp;&lt;br /&gt;I am however seeing several differences at&amp;nbsp;several addresses, which may be the reason it is failing to verify.&lt;br /&gt;&lt;br /&gt;Are you using long cables when programming?&amp;nbsp;&lt;br /&gt;The following command will program and verify with a very low clock frequency (125kHz):&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -c 125 --program softdevice.hex --chiperase --verify&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This will take a longer time to complete.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184881?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54e43d2-def1-45b9-ae05-990c0cb84252</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;I use J-Flash utility along with nrfjprog. J-Flash is able to program and verify the firmware.&lt;/p&gt;
&lt;p&gt;These are the commands I run:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --eraseall&lt;br /&gt;Erasing user available code and UICR flash areas.&lt;br /&gt;Applying system reset.&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --program s132_nrf52_6.1.0_softdevice.hex&lt;br /&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programing device.&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --verify s132_nrf52_6.1.0_softdevice.hex&lt;br /&gt;Parsing hex file.&lt;br /&gt;Verifying programming.&lt;br /&gt;ERROR: Write verify failed.&lt;/p&gt;
&lt;p&gt;This is the dump:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dump.txt"&gt;devzone.nordicsemi.com/.../dump.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It failed to verify at 0x3C - 0x3F address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184873?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:080638a7-fe51-475d-95b3-5f74855a5bc9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="gaminn"]I tlash s132_nrf52_6.1.0_softdevice.hex (size 424 030 bytes).[/quote]
&lt;p&gt;&amp;nbsp;Are you able to flash this hex?&lt;/p&gt;
[quote user="gaminn"]Yesterday, I mainly received verify error on 0x7C offsets of the flashed file, today I got&amp;nbsp;&amp;nbsp; - 0x7FC, 0x3FC and 0x7C.[/quote]
&lt;p&gt;How&amp;nbsp;do you get this information?&amp;nbsp;&lt;/p&gt;
[quote user="gaminn"]These are the commands I run:[/quote]
&lt;p&gt;What do you get when you run these commands?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Can you please run the following command:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memrd 0x0 --n 0x26000 &amp;gt; dump.txt&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And send me this file.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184847?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 11:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1550d76-1204-407c-97bf-9df2e543b7ec</guid><dc:creator>gaminn</dc:creator><description>&lt;p&gt;The device is Raytac&amp;#39;s MDBT42 on our custom board. I tried more boards.&lt;/p&gt;
&lt;p&gt;I tlash s132_nrf52_6.1.0_softdevice.hex (size 424 030 bytes).&lt;/p&gt;
&lt;p&gt;Yesterday, I mainly received verify error on 0x7C offsets of the flashed file, today I got&amp;nbsp;&amp;nbsp; - 0x7FC, 0x3FC and 0x7C.&lt;/p&gt;
&lt;p&gt;By offset 0 I mean beginning of the hex, by offset 0xFF I mean 255th byte of the hex (provided that there is one continuous memory region at the beginning of the hex).&lt;/p&gt;
&lt;p&gt;These are the commands I run:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --eraseall&lt;br /&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --program s132_nrf52_6.1.0_softdevice.hex&lt;br /&gt;&amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe&amp;quot; -f nrf52 --verify s132_nrf52_6.1.0_softdevice.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog write verify failed</title><link>https://devzone.nordicsemi.com/thread/184793?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 08:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d6203d-0dd1-4c64-a90a-d23dadf8c3fd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Can you give more information about the device you are trying to program? Is it a developer kit or custom board?&lt;/p&gt;
[quote user=""]I examined it a little and I can see that nrfjprog changes some bytes, mainly at offset 0x7C - 0x7F of the hex, where it programs FF FF FF FF instead of what is in the hex.[/quote]
&lt;p&gt;&amp;nbsp;What do you mean with this offset? Is it always the same address?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please provide the .hex file so I can test here.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>