<?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>nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59497/nrf52840-dk-permanent-hang-during-flashing</link><description>Hi, 
 We have a stability issue with nRF52840 DK after it has been upgraded to JLink DLL version V6.60e and firmware OB-SAM3U128-V2-NordicSemi compiled Jan 7 2019 14:07:15. Please see the below scenario which typically reproduces this problem: 
 1) Start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Apr 2020 10:41:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59497/nrf52840-dk-permanent-hang-during-flashing" /><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242910?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 10:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abf2d0c9-c5b8-44f2-afa9-1299bf403b21</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;The only workaround I found is to&lt;span&gt;&amp;nbsp;close JLink connection using &amp;quot;qc&amp;quot; command before flash programming.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Krzysztof&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242867?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 08:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6477385c-3161-4c31-9919-6bc6ed3d7ae4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It looks like Jlink have communication errors (read error) when connected to the device,&amp;nbsp;maybe reducing clock speed can help, but this may be an SEGGER Jlink issue. I can in any case report it, let me know if you find a solution or workaround. You may also consider reach out to SEGGER, I think it would help if you&amp;nbsp;knew&amp;nbsp;version this worked on.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242662?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 11:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31608eae-bd66-4362-a087-450f7c044647</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;Logs from running flash command, and attached log.log.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ sudo nrfjprog -f nrf52 -r --program node_thread.hex --sectorerase --log
Segmentation fault&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1018.log.log"&gt;devzone.nordicsemi.com/.../1018.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242642?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 09:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfaf044-87ea-40e8-8df5-4c2aedba9721</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you also run &amp;quot;nrfjprog&amp;quot; command with logging enabled? use --log and send us the log.log file?&lt;/p&gt;
&lt;p&gt;nrfjprog -f nrf52 -r --program nrf52840_xxaa.hex --sectorerase --log&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242497?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 15:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa39c2f3-fbbd-4801-a8da-bad1edd22bff</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;The problem appears on&amp;nbsp;&lt;span&gt;6.60e as well. We didn&amp;#39;t experience such issues some time before (maybe a year before) but I don&amp;#39;t remember what version it was...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Machine 1:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;$ nrfjprog --version&lt;br /&gt;nrfjprog version: 10.7.0 &lt;br /&gt;JLinkARM.dll version: 6.64b&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Machine 2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;$ nrfjprog --version&lt;br /&gt;nrfjprog version: 10.6.0 &lt;br /&gt;JLinkARM.dll version: 6.64b&lt;/p&gt;
&lt;p&gt;Issue occurs on both machines&amp;nbsp;like above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/242486?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 14:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3209392-3bd3-4845-8276-011e19ec4e77</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;So if I understand it correctly this worked on previous version of nrfjprog/jlink (do you know which one?), but the latest 10.7.0/6.64b this does not work anymore? Or is it only 6.60e that fails?&lt;/p&gt;
[quote user="kristofbo"]I also found out, that the issue does not appear when I close JLink connection and quit using &amp;quot;qc&amp;quot; command before flash programming.[/quote]
&lt;p&gt;It seems like conflict between jlink and nrfjprog, I can report it internally. Can you type nrfjprog --version just so I have that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/241926?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 15:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96567651-f90b-4944-8d14-5fc385d47243</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;&lt;em&gt;- Is it just one DK, or all of them?&lt;/em&gt;&lt;br /&gt;We have several DKs, please see details below.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- Have you by any chance cut the solder bridges to measure current at any time?&lt;/em&gt;&lt;br /&gt;No.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- Do you have such problems if you use another PC (e.g. with windows)?&lt;/em&gt;&lt;br /&gt;We have such problem on several PCs, Ubuntu 18.04. We do not use it with Windows.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- What version is it of the nRF52840-DK?&lt;/em&gt;&lt;br /&gt;These have problems described in this issue, running on Ubuntu 18.04:&lt;br /&gt;* PCA10056 0.9.3 2017.44&lt;br /&gt;* PCA10056 1.0.0 2018.49&lt;/p&gt;
&lt;p&gt;On this one I cannot reprocuce this prolem so far, on Ubuntu 18.04:&lt;br /&gt;* PCA10056 2.0.0. 2020.2&lt;/p&gt;
&lt;p&gt;This one is running on Mac, had the same problems, but now it&amp;#39;s working after upgrade to JLink V6.64b.&lt;br /&gt;* PCA10056 1.1.0 2019.26&lt;/p&gt;
&lt;p&gt;I also found out, that the issue does not appear when I close JLink connection and quit using &amp;quot;qc&amp;quot; command before flash programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/241887?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4bf3bd8-7739-4f3f-949c-78dd8697b184</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Just to try to narrow it down:&lt;/p&gt;
&lt;p&gt;- Is it just one DK, or all of them?&lt;br /&gt;- Have you by any chance cut the solder bridges to measure current at any time?&lt;br /&gt;- Do you have such problems if you use another PC (e.g. with windows)?&lt;br /&gt;- What version is it of the nRF52840-DK?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/241821?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 12:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41ad0bcb-0b04-406e-baeb-c9be7e4c48fe</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;I&amp;#39;ve just reproduced this problem again with&amp;nbsp;&lt;span&gt;MSDDisable previously called as you suggested and my laptop is still hanging on bootup, when such broken DK is attached to USB.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/241803?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 11:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed4d39d5-c89b-4d3a-aa95-9b00b1d4fd7f</guid><dc:creator>kristofbo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the information.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already updated to the newest&amp;nbsp;&lt;span&gt;JLin DLL version V6.64b.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Firmware on DK has been automatically updated to&amp;nbsp;&amp;nbsp;Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00, please see logs:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;10:08 $ sudo JLinkExe -if swd -speed 9600 -device NRF52840_XXAA -autoconnect 1
SEGGER J-Link Commander V6.64b (Compiled Mar 20 2020 10:08:41)
DLL version V6.64b, compiled Mar 20 2020 10:08:28
Connecting to J-Link via USB...Updating firmware:  J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
Replacing firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan  7 2019 14:07:15
Waiting for new firmware to boot
New firmware booted successfully
O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
Hardware version: V1.00
S/N: 683122431
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
VTref=3.300V
Device &amp;quot;NRF52840_XXAA&amp;quot; selected.
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;in general it looks more stable but unfortunately the problem appeared again while attempting to program firmware:&lt;/p&gt;
&lt;pre class="c-mrkdwn__pre"&gt;J-Link&amp;gt;&lt;br /&gt;****** Error: Communication timed out: Requested 12 bytes, received 0 bytes !&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;I will call&amp;nbsp;&lt;span&gt;MSDDisable and hope this will help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK permanent hang during flashing</title><link>https://devzone.nordicsemi.com/thread/241774?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b52cfbec-1958-4059-8348-2aab4fbd771c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can try to first download and install the latest j-link from here:&lt;br /&gt;&lt;a href="https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack"&gt;https://www.segger.com/downloads/jlink#J-LinkSoftwareAndDocumentationPack&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am not familiar with Linux, but typically you should use the jlink configurator tool to update to the latest firmware, as seen in this reply for instance:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41192/where-to-download-j-link-ob-firmware-j-link-ob-sam3u128-v2-nordicsemi-170213-bin/225493#225493"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41192/where-to-download-j-link-ob-firmware-j-link-ob-sam3u128-v2-nordicsemi-170213-bin/225493#225493&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once that is done, you can also disable the DK to enumerate as a disk drive by calling MSDDisable as seen here:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c575c08d302f4de2a3619906bbff64eb/pastedimage1585217970087v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Remember to power cycle the DK for the change to have an effect. This should prevent the PC to hang during startup.&lt;/p&gt;
&lt;p&gt;Hopefully the above should make nrfjprog to work again and the PC to boot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>