<?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>nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82940/nrf5340-dk-programming-issue</link><description>Hi, 
 
 We are using nRFProgrammer v2.0.1. 
 After &amp;#39;Erase All&amp;#39; for nRF5340-DK and power off-on it. 
 nRFProgrammer seems hang over there. below is the screen capture. 
 
 I seek development zone and found below suggestion. Using below statement to recover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 09:37:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82940/nrf5340-dk-programming-issue" /><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/345599?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 09:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2735df7-1bb1-4bb3-b6b6-d0f3f801beaf</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After update nRF command line tool, the issue solved.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/345233?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 12:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f24ffa-9a80-4cf3-8079-e97baa77c152</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Charles,&lt;/p&gt;
&lt;p&gt;According to the log, the nrfjprog version you have is 10.7.0. Although it is not the newest version, it is not very old. However, you could consider updating to a newer one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It might also be that you have PDK instead of DK. Could you please share what is the version of your nRF5340dk? You can find this information from the sticker on the board, beneath PCA10095.&lt;/p&gt;
&lt;p&gt;Could you please check if nrfjprog can see the COM port of the network core by issuing &amp;quot;nrfjprog --com&amp;quot; command?&lt;/p&gt;
&lt;p&gt;In addition, have a look at the following links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63176/nrf5340---jlink-error-message"&gt;devzone.nordicsemi.com/.../nrf5340---jlink-error-message&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70506/jlinkarm-dll-reported-an-error-on-nrf52832-j-link-v9-programmer"&gt;devzone.nordicsemi.com/.../jlinkarm-dll-reported-an-error-on-nrf52832-j-link-v9-programmer&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12484/approtect-and-dap/47300"&gt;devzone.nordicsemi.com/.../47300&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74910/nrf5340-network-core---recover-fails"&gt;devzone.nordicsemi.com/.../nrf5340-network-core---recover-fails&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71033/nrfjprog---recover-fails-recover-failed-please-make-sure-that-the-correct-device-family-is-given-and-try-again"&gt;devzone.nordicsemi.com/.../nrfjprog---recover-fails-recover-failed-please-make-sure-that-the-correct-device-family-is-given-and-try-again&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70492/how-to-erase-the-data-in-nrf52832"&gt;devzone.nordicsemi.com/.../how-to-erase-the-data-in-nrf52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When trying out the recommended solution with a bat file (given in the last link), make sure to replace nrf52 with nrf53.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dejan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/345014?ContentTypeID=1</link><pubDate>Fri, 24 Dec 2021 05:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5eb5e4-8ce8-46f7-bebc-8a734ac957ef</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Customer already try the commands, below is the screen capture. It cannot fix the problem. We also attached the log for your reference.&lt;/p&gt;
&lt;p&gt;Could you please help on this matter?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/24Dec2021_5F00_01.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the log.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2625.log.log"&gt;devzone.nordicsemi.com/.../2625.log.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344931?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 11:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f8bbdc8-66be-4abf-9b21-36b0add8df36</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Charles,&lt;/p&gt;
&lt;p&gt;Issuing the command &amp;quot;nrfjprog -f NRF53 --eraseall --coprocessor CP_NETWORK&amp;quot; produces the same output that can be seen in the log section of the Programmer application, as in your picture. After restarting, type &amp;quot;nrfjprog -f NRF53 --recover --coprocessor CP_NETWORK&amp;quot; and &amp;quot;&lt;span&gt;nrfjprog -f NRF53 --recover --coprocessor CP_APPLICATION&lt;/span&gt;&amp;quot; to enable the cores again.&lt;/p&gt;
&lt;p&gt;Regarding nrfjprog --rbp command, there are two options, out of which only one &amp;quot;ALL&amp;quot; can be used in your case. Try typing &amp;quot;&lt;span&gt;nrfjprog --rbp ALL&lt;/span&gt;&amp;quot;. If the cores are locked, this command will be unsuccessful. Otherwise, it will work fine. Restart the device. After that run &amp;quot;&lt;span&gt;nrfjprog -f NRF53 --recover --coprocessor CP_APPLICATION&lt;/span&gt;&amp;quot; to enable cores again.&lt;/p&gt;
&lt;p&gt;In short, use --eraseall on specific core and use --recover to disable readback protection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344866?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 02:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c42c246-4d90-483f-959a-eb8a141b69f4</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We already try the &amp;quot;nrfjprog --recover&amp;quot; command, it still can&amp;#39;t unlock the network core. Below is the screen capture for reference. The NETWORK CORE still under protected.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/23Dec2021_5F00_01.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/23Dec2021_5F00_02.png" /&gt;&lt;/p&gt;
&lt;p&gt;Do you have any comment on this issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For above suggestion on production programming, we have below question.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- protecting&amp;nbsp; &amp;nbsp; nrfjprog --rbp&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;how to project just APPLICATION CORE or NETWORK CORE?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344857?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 01:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b749276-8134-4bf9-8318-ab4fd9feeb74</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me check with customer first and let you know later.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344829?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 15:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a6a730-06cb-419c-9a4e-f47d51029f5a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For the first question, nrfjprog is recommended to be used to recover cores. The normal sequence would be to remove the protection sequentially, first from the network and then from the application core. This is done using nrfjprog --recover --coprocessor CP_NETWORK and&amp;nbsp;&lt;span&gt;nrfjprog --recover --coprocessor CP_APPLICATION.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the second question, you could take a look at nrfjprog command options listed on infocenter.nordicsemi.com. For specific operations, you could use nrfjprog like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- protecting&amp;nbsp; &amp;nbsp; nrfjprog --rbp&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- disabling protection&amp;nbsp; &amp;nbsp; nrfjprog --recover&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- halting the core&amp;nbsp; &amp;nbsp; nrfjprog --halt&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- program&amp;nbsp; &amp;nbsp; &amp;nbsp;nrfjprog --program &amp;lt;hex_file&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-verify&amp;nbsp; &amp;nbsp; &amp;nbsp;nrfjrog --verify &amp;lt;hex_file&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You could then include abovementioned commands in one .bat file.&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;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344705?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 01:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40e57adb-d17a-46d4-82a8-9e1829c78821</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is good to hear that you can re-produce the same situation. We will try using nrfjprog --recover to overcome this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If either core (application core or Network core) is readout protected, can nrfjprog --recover can overcome this matter?&lt;/p&gt;
&lt;p&gt;say, like below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2110.Picture2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I read out application note nAN42, nRF5340 production programming. How can we use nRFjprog to meet production programming flow? Do you have any examples (batch file) for reference?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7318.Picture3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344649?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 15:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f0f24a-63a3-4410-b994-f0b70bf540ee</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I reproduced the problem with the Programmer application.&lt;/p&gt;
&lt;p&gt;My setup consisted of Windows 10 Enterprise, nRF5340 DK (PCA10095, 2.0.0), Programmer 2.0.1 and Visual Studio Code v1.62.3. I used &amp;quot;Hello World&amp;quot; example with build configuration for the board nrf5340dk_nrf5340_cpuapp. I flashed the program successfully and could read the content.&amp;nbsp;&lt;br /&gt;After pressing &amp;quot;Erase All&amp;quot; in the Programmer and switching OFF and ON, I got the same result. Power cycling the device enables readback protection. Option --recover in nrfjprog command disables the readback protection so that flashing can be performed again and option --recover is required after each power cycle.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344459?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 01:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f764c820-c2f2-47ca-b1da-550657385775</guid><dc:creator>chcnuhk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using nRF5340-DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRFProgrammer v2.0.1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After i connect nRF5340-DK, i select &amp;#39;Erase All&amp;#39;. After its finish, i switch off nRF5340-DK.&lt;/p&gt;
&lt;p&gt;later, i switch nRF5340-DK again and connect it to nRFProgrammer.&lt;/p&gt;
&lt;p&gt;It shows below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5353.Picture1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The system seems hang over there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344425?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 16:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3596c368-398b-4479-a36e-832472cb2d57</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would appreciate if you could provide sequentially all the steps that you made. In that case I could possibly reproduce the problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK programming issue</title><link>https://devzone.nordicsemi.com/thread/344249?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 07:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00fee3fe-4032-45f6-b042-09e0b24edd14</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hi chcnuhk,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;please try J-Flash in&amp;nbsp;Jlink7.52,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;It will satisfy you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;best&amp;nbsp;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/537x165/__key/communityserver-discussions-components-files/4/pastedimage1639985151959v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/721x730/__key/communityserver-discussions-components-files/4/pastedimage1639984888874v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>