<?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>NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49514/nrf9160-ses-4-18-flash-erase-hanging</link><description>Hi, 
 Since migrating to SES 4.18 erasing of the flash hangs unless the JLink is unplugged and plugged in again. This is both on the DK and our own custom board. Here&amp;#39;s the repro steps: 
 - Compile application to produce merged_hex 
 - Debug Go produces</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Oct 2019 15:52:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49514/nrf9160-ses-4-18-flash-erase-hanging" /><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/215755?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 15:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a5e830-f733-455b-b624-86dae300d4a5</guid><dc:creator>GJSea</dc:creator><description>&lt;p&gt;I also get this everytime I do a Debug..Go in SES after rebuilding my firmware, 2nd time invariably succeeds. This is both on the 0.8.5 DK and our own custom board.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SESFlash.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;with this in the console:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Reset: CPU may have not been reset (DHCSR.S_RESET_ST never gets set).
Reset: Using fallback: Reset pin.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via reset pin
Downloading ‘merged.hex’ to J-Link
Programming 33.1 KB of addresses 00000000 — 000084af
Programming 397.3 KB of addresses 0000c000 — 0006f537
Timeout while checking target RAM, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00000000, LR = 0x61000007)!
Failed to prepare for programming.
Failed to execute RAMCode for RAM check!
CPU is not halted
Download failed&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then when it works I get the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘merged.hex’ to J-Link
Programming 33.1 KB of addresses 00000000 — 000084af
Programming 397.3 KB of addresses 0000c000 — 0006f537
J-Link: Flash download: Bank 2 @ 0x00000000: Skipped. Contents already match
Download successful&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/215752?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 15:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2377effe-52b5-498e-ab22-046f389080b8</guid><dc:creator>Jeff Seaman</dc:creator><description>&lt;p&gt;Yes I still can not reprogram without a full erase.&lt;/p&gt;
&lt;p&gt;I would like to save EE Data between debug sessions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/215599?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2019 18:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438ff7d8-93a1-4037-ab71-b36a81e0315a</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I&amp;#39;m still experiencing the same issue with SES V4.20 after installing the above nrfjprog&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/214114?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 10:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10a425e4-9b00-4c7d-bfad-b9ca09d53e47</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The new release of nrfjprog v10.4.0 that came out today fixes this issue. You can download the new command line tools &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; My bad, it seems this fix only fixed the command line flashing issue. If you are using Segger Embedded Studio, you&amp;#39;ll have to wait for the new J-Link fix, which should be out soon. SES uses J-Link directly (not nrfjprog), so the fix needs to be implemented there by Segger first.&lt;/p&gt;
&lt;p&gt;I will update this case once SES has been fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/208841?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 08:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0e5b62b-d69d-4fd6-ab78-7475e44a980c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The issue has not been fixed yet (I will still update this thread once a fix is available), but what you can do instead is use the Segger IDE to write code &amp;amp; use the command line tools to build &amp;amp; flash. Or compile via SES &amp;amp; use west or nrfjprog to flash.&lt;/p&gt;
&lt;p&gt;To build &amp;amp; flash using command line tools:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf9160_pca10090ns -d build1
west flash -d build1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where -b stands for board &amp;amp; -d stands for the build directory.&lt;/p&gt;
&lt;p&gt;Otherwise, you can also use nrfjprog directly:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program merged.hex --sectorerase -f nrf91 --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The merged hex file is located here e.g:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ncs\nrf\samples\nrf9160\http_application_update\build1\zephyr&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You could also use Visual Studio Code or something similar if you prefer to do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/198849?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 05:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faee1570-c4eb-4020-a181-4a0b1f4dc2bd</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Another workaround is to just try flashing the merged hex multiple times. After one or two times, it should work. We should have a new version of SES out sometime soon, which will implement a fix for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/197958?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 00:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc21102-d65d-4fb9-a05e-11709edcad01</guid><dc:creator>rkguy</dc:creator><description>&lt;p&gt;Yah. My workaround is to build in segger studio and sideload using the new nrfConnect app&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/197866?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 13:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b410c14-1e75-451a-bdf8-3bb906c425cc</guid><dc:creator>Jeff Seaman</dc:creator><description>&lt;p&gt;To reprogram the chip&lt;/p&gt;
&lt;p&gt;1) in tools connect to target&lt;/p&gt;
&lt;p&gt;2) erase all&amp;nbsp; and wait for it to fail&lt;/p&gt;
&lt;p&gt;3) program and debug as normal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this does not seem to be needed if not running secure partition manager&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/197451?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 16:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12d36d5-361d-4d10-acfe-a375300abdc2</guid><dc:creator>GJSea</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SES 4.18 flash erase hanging</title><link>https://devzone.nordicsemi.com/thread/197383?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 12:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6c107c9-5e3b-446b-a529-7fdb20df5fdb</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;It seems there is an issue with the J-Link driver. This has been reported internally. I will keep you updated as soon as we have a fix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>