<?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>Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115226/problem-writing-to-nrf52840</link><description>I am using the following chip: NRF52840-QIAA-R 
 
 boggi@getshop-boggi:~/....$ nrfjprog --program /home/boggi/..../build_1/zephyr/zephyr.hex --sectoranduicrerase --verify -f NRF52 --snr 1050385234 --log [ #################### ] 5.321s | Erase file - Done</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2024 12:18:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115226/problem-writing-to-nrf52840" /><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/506115?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 12:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7250f35-b76d-4fa4-af3e-cb1a0638a756</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Could it be soldering issues? Perhaps the chip is not properly soldered on the board?&lt;/p&gt;
&lt;p&gt;Unless you have an external debugger to test with, then I would say that you need to try to look at the soldering, or send it to us if you suspect it is a faulty device. In that case, we can desolder the chip, and test it in a socket board that we have.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively, what you can do first is to send us your schematics and PCB layout files for review. In that case, please create a new ticket, so that it will be assigned to someone who knows what to look for in PCB reviews (because I don&amp;#39;t).&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: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505988?ContentTypeID=1</link><pubDate>Sun, 13 Oct 2024 08:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f4bdb1-ff98-478c-83fd-ccfcb5a4c180</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have different version of a custom board that works, but none of the same copy works here.&lt;/p&gt;
&lt;p&gt;They faulty one have never worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505837?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 08:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018e5f55-d068-4902-a3df-cf0c3b2df07c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so you have one custom board that can&amp;#39;t be programmed, and you don&amp;#39;t have an external debugger to test with.&lt;/p&gt;
&lt;p&gt;So do you have several physical copies of that same custom board? And some of them are working, but one particular does not work?&lt;/p&gt;
&lt;p&gt;Or does none of that custom board work?&lt;/p&gt;
&lt;p&gt;Did the faulty device work at some point? Or did it never work?&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: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505807?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 05:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba973267-f187-43b5-8b98-f0f533db5122</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Does flashing that particular firmware work if you flash it to another nRF52840 device, like a DK? (I don&amp;#39;t care if it doesn&amp;#39;t run, but if it is possible to just flash it).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And similarly, does it work programming other .hex files to that particular board?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;No&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And finally, can you try with another DK as a debugger, or even an external debugger with your custom board.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I don&amp;#39;t have another DK, but I am able to program other custom boards the same way with the same DK, so I don&amp;#39;t think there is a problem with the DK.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505730?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 12:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440420c6-bc90-4c25-902d-4da9c707c55c</guid><dc:creator>Edvin</dc:creator><description>[quote user="Boggibill"]BTW; I have not nReset connected, could that cause this problems?[/quote]
&lt;p&gt;Should not be needed. The debugger usually uses software reset, not pin reset.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does flashing that particular firmware work if you flash it to another nRF52840 device, like a DK? (I don&amp;#39;t care if it doesn&amp;#39;t run, but if it is possible to just flash it).&lt;/p&gt;
&lt;p&gt;And similarly, does it work programming other .hex files to that particular board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And finally, can you try with another DK as a debugger, or even an external debugger with your custom board.&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: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505712?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 11:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66826d0b-3ddc-4b49-8448-d17cc77613f2</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;I know it is a bit &amp;quot;home-made&amp;quot;. But i run out if wires and needed to remove soldered connection since that could be that somewhere it was improper connections. It is like this to make sure all connections&amp;nbsp;where connected..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway it did not help..&lt;/p&gt;
&lt;p&gt;boggi@getshop-boggi:~$ nrfjprog --program /home/boggi/..../build_1/zephyr/zephyr.hex --recover --verify -f NRF52 --snr 1050385234 -c 500 --log&lt;br /&gt;[ #################### ] 1.147s | Erase file - Done erasing &lt;br /&gt;[error] [ Client] - Encountered error -102: Command program_file executed for 58 milliseconds with result -102 &lt;br /&gt;[error] [ nRF52] - The write access failed, but no cause could be determined.&lt;br /&gt;[error] [ nRF52] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.&lt;br /&gt;[error] [ nRF52] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. &lt;br /&gt;-102: An unknown error.&lt;br /&gt;[error] [ nRF52] - Failed while reading device information.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;boggi@getshop-boggi:~$ nrfjprog --recover&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;boggi@getshop-boggi:~$ nrfjprog --program /home/boggi/..../build_1/zephyr/zephyr.hex --recover --verify -f NRF52 --snr 1050385234 --clockspeed 500 --log[ #################### ] 1.148s | Erase file - Done erasing &lt;br /&gt;[error] [ Client] - Encountered error -102: Command program_file executed for 57 milliseconds with result -102 &lt;br /&gt;[error] [ nRF52] - The write access failed, but no cause could be determined.&lt;br /&gt;[error] [ nRF52] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.&lt;br /&gt;[error] [ nRF52] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. &lt;br /&gt;-102: An unknown error.&lt;br /&gt;[error] [ nRF52] - Failed while reading device information.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;boggi@getshop-boggi:~$&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attached log&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4454.log.log"&gt;devzone.nordicsemi.com/.../4454.log.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BTW; I have not nReset connected, could that cause this problems?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505707?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 10:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c32a8d0-755e-4644-a7a2-05835ccf5696</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You can try to decrease the SWD speed. No offence, but this looks a bit home-made with a lot of connections that may not be 100%.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Add the argument:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--clockspeed 500&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;-c 500&lt;/p&gt;
&lt;p&gt;and see if that changes anything.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505662?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 07:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87dfa0a7-d11d-4468-b169-27f7263a67d9</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Hi Edvin.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try what you say. It is not easy to see from the picture, but GND and GND detect are already&amp;nbsp;connected here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tested connceting VDD to a different port, with no luck.&lt;/p&gt;
&lt;p&gt;nrfjprog --recover --log works just fine.&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/458521617_5F00_851780347127811_5F00_8715238523481242515_5F00_n.jpg" alt=" " /&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/462563249_5F00_1086636969480555_5F00_5504092347466746460_5F00_n.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505495?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 09:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8706fd-0824-4521-8b58-a70c391f2bda</guid><dc:creator>Edvin</dc:creator><description>[quote user="Boggibill"]I am able to program other custom boards with a different&amp;nbsp;chip (&lt;span&gt;NRF52840-QFAA-F-R7).&lt;/span&gt;[/quote]
&lt;p&gt;Using this DK as the programmer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Boggibill"] I am powering using the DK, and the (the standard voltage on the DK).[/quote]
&lt;p&gt;As shown in this picture? If so, can you please try the following:&lt;/p&gt;
&lt;p&gt;1: Disconnect the VDD_nRF on the far left, and plug it in VDD near the bottom of the picture. (not sure if this is needed, but it is worth a shot)&lt;/p&gt;
&lt;p&gt;2: Disconnect the GND DETECT and plug it in GND near the bottom of the picture.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3: Short GND to GND DETECT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(4: Keep the white cable, shorting VDD to VTG)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reason is that GND DETECT is not actually ground. It is used to detect whether GND is GND on the connected device. So right now you are probably having a floating GND on your custom board, unless you power it externally.&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: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505465?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 07:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1768495e-7c43-4c99-80a0-56d45795f7f3</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, i am sure I don&amp;#39;t mix the SWDIO and SWDCLK. I am able to program other custom boards with a different&amp;nbsp;chip (&lt;span&gt;NRF52840-QFAA-F-R7).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Im not sure what the voltage is, I am powering using the DK, and the (the standard voltage on the DK).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Attached is a picture of the board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:488px;max-width:651px;" height="488" src="https://devzone.nordicsemi.com/resized-image/__size/1302x976/__key/communityserver-discussions-components-files/4/462551274_5F00_8557496634309674_5F00_5336024604249136704_5F00_n.jpg" width="651" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505195?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 13:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bca90a4-e540-46ec-af4b-b3d2ab8439a2</guid><dc:creator>Edvin</dc:creator><description>[quote user="Boggibill"]If i disconnect VDD and VTC the programming possible:[/quote]
&lt;p&gt;But then it will program the DK, right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So the custom board is powered externally, right? What voltage is the nRF running on on the custom board? What version is your nRF52 DK? What does it say on the white sticker, other than the serial number (1050385234)? And can you please take a picture of the P20 header (the one with VDD_nRF, GND detect, SWDIO and SWDCLK, and so on), and upload it here?&lt;/p&gt;
&lt;p&gt;Are you sure you didn&amp;#39;t mix up the SWDIO and SWDCLK lines? It should be SWDIO DK -&amp;gt; SWDIO custom board and SWDCLK DK -&amp;gt; SWDCLK custom board.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505170?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 11:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a337b3a1-849e-4a90-94dc-bc29e9c66335</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I am able to program the dev board NRF52.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am programming a custom board using the NRF52 dev board by shortening VDD and VTC. The custom board is connected to the SWDIO and SWDCLK, VDD_nRF, GND, and GND detect on he dev board.&amp;nbsp; The dev board is connected usb.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If i disconnect VDD and VTC the programming possible:&lt;/p&gt;
&lt;p&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Flashing file: /home/boggi/..../build_1/zephyr/zephyr.hex&lt;br /&gt;[ ###### ] 0.000s | Erase file - Check ima[ ##### ] 0.000s | Check image validity -[ ########## ] 0.000s | Check image validity -[ ############### ] 0.000s | Check image validity -[ #################### ] 0.006s | Check image validity -[ ############# ] 0.000s | Erase file - Erasing [ ########## ] 0.000s | Erasing non-volatile m[ #################### ] 1.514s | Erase file - Done erasing &lt;br /&gt;[ #################### ] 3.665s | Program file - Done programming &lt;br /&gt;[ #################### ] 1.354s | Verify file - Done verifying &lt;br /&gt;Enabling pin reset.&lt;br /&gt;Applying pin reset.&lt;br /&gt;-- runners.nrfjprog: Board with serial number 1050385234 flashed successfully.&lt;br /&gt; * Terminal will be reused by tasks, press any key to close it. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505169?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 11:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70903541-1a3f-4c17-b2a8-74ac4be6c595</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, then we are probably looking at something else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the same computer, same version of nrfjprog and JLink. Are you able to program other devices, such as an nRF52840 DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to program other application files to the nRF52840, or is it just this one file failing?&lt;/p&gt;
&lt;p&gt;What device are you trying to program? Is it a DK, or a custom board? And how did you connect it to the computer? USB cable? external debugger? External board via nRF52840 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505019?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 13:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b111a2-5a62-4393-9e31-0ca2c9291a70</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;Hi Edvin.&lt;/p&gt;
&lt;p&gt;Thanks for following me up.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still get issues.&lt;/p&gt;
&lt;p&gt;boggi@getshop-boggi:~/Downloads$ nrfjprog --program /home/boggi/..../build_1/zephyr/zephyr.hex --recover --verify -f NRF52 --snr 1050385234&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;[ #################### ] 1.113s | Erase file - Done erasing &lt;br /&gt;[error] [ Client] - Encountered error -102: Command program_file executed for 397 milliseconds with result -102 &lt;br /&gt;[error] [ nRF52] - The write access failed, but no cause could be determined.&lt;br /&gt;[error] [ nRF52] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.&lt;br /&gt;[error] [ nRF52] - Failed while performing &amp;#39;Write&amp;#39; operation on target address 0x00000000. &lt;br /&gt;-102: An unknown error.&lt;br /&gt;[error] [ nRF52] - Failed while reading device information.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;boggi@getshop-boggi:~/Downloads$ nrfjprog --version&lt;br /&gt;nrfjprog version: 10.24.2 external&lt;br /&gt;JLinkARM.dll version: 7.94e&lt;br /&gt;boggi@getshop-boggi:~/Downloads$&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attached log:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8640.log.log"&gt;devzone.nordicsemi.com/.../8640.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/505013?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 13:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38bbf9e0-10f2-4713-b755-bf7bd1261b0d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First, can you please try:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog --program /home/boggi/..../build_1/zephyr/zephyr.hex --recover --verify -f NRF52 --snr 1050385234&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So exchange the --serialanduicrerase with --recover.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Next, for the remaining &amp;quot;small&amp;quot; writes, you should add &amp;quot;--verify&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you are seeing is probably that you have the new nRF52840&amp;#39;s which has a bit different readbackprotection. Therefore, if it is empty, readbackprotection is enabled, so the FW needs to unlock it. If you have the latest MDK, this is done automatically.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And you should stick to the latest version of nrfjprog, as the older ones may not be aware of this new readback protection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The reason --recover before doing the --program in two different options is that the recover will write a small application to the nRF, turning off readback protection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Give it a go, and let me know if it doesn&amp;#39;t work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem writing to nrf52840</title><link>https://devzone.nordicsemi.com/thread/504893?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 17:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47aac5df-bd88-4d62-aab9-a8ee7ac92a58</guid><dc:creator>Boggibill</dc:creator><description>&lt;p&gt;update, degrading nrfjprog did give a different result:&lt;br /&gt;&lt;br /&gt;[ #################### ] 0.194s | Erase file - Done erasing &lt;br /&gt;[error] [ Client] - Encountered error -102: Command program_file executed for 448 milliseconds with result -102 &lt;br /&gt;[error] [ nRF52] - The write access failed, but no cause could be determined.&lt;br /&gt;[error] [ nRF52] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.&lt;br /&gt;[error] [ nRF52] - Failed while performing Write operation on target address 203288. &lt;br /&gt;-102: An unknown error.&lt;br /&gt;[error] [ nRF52] - Failed while reading device information.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;but still.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>