<?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>make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49798/make-flash-runs-fine-but-stop-flashing-sometimes</link><description>Hello everyone, 
 
 We are using the nrf52840 Dev Kit (PCA10056 1.1.0 2019.19 683465548) 
 
 SDK Version: 15.3 
 
 OS: Fedora 
 
 When we are using the command line &amp;quot;make flash&amp;quot; on our main project, the command execution works fine but the flashed program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jul 2019 10:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49798/make-flash-runs-fine-but-stop-flashing-sometimes" /><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198672?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 10:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b77fb1a-2341-43d8-9954-db281e0b6a22</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Flashing soft device as well works.&lt;/p&gt;
&lt;p&gt;Thanks H&amp;auml;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198668?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 10:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0517e759-2d67-4a13-95b8-de379949186c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You need to flash the softdevice as well.&lt;/p&gt;
&lt;p&gt;Try this: &amp;quot;make flash_softdevice &amp;amp;&amp;amp; make flash&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198661?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 10:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f0a699-7a53-4109-b24b-826f6c7e6c6e</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Here it is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program _build/nrf52840_xxaa.hex --sectorerase --verify --reset
Parsing hex file.
Erasing page at address 0x26000.
Erasing page at address 0x27000.
Erasing page at address 0x28000.
Erasing page at address 0x29000.
Erasing page at address 0x2A000.
Erasing page at address 0x2B000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
Verifying programming.
Verified OK.
Applying system reset.
Run.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Verify OK but same issue even if I power-cycle the board.&lt;/p&gt;
&lt;p&gt;The program run as the old flashed one until make erase.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But my main project is compiled in s140/ folder instead of blank/ folder in blinky example.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if it helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198658?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 10:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065d3cf7-c10c-44a2-98f3-ed97cf0fc3c5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;&amp;quot;make flash&amp;quot; will essentially do this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f nrf52 --program $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex --sectorerase
nrfjprog -f nrf52 --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can add a --verify to ensure that the written content matches:&lt;/p&gt;
&lt;p&gt;nrfjprog --program my.hex --sectorerase --verify --reset&lt;/p&gt;
&lt;p&gt;Could you try this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it still does not work, what happens if you power-cycle the board? Does the firmware run as expected then?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198655?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 09:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca48bbf8-2883-4365-80ad-b456d23632eb</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Yes I&amp;#39;m flashing in the blinky/pca10056/blank folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198626?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 08:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0748f8a8-9351-42a8-acd3-c9aed88a2b28</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Are you sure you are not flashing the &amp;quot;mbr&amp;quot; project? This one is flash offset with 0x1000, so if you have programmed the &amp;quot;blank&amp;quot; project prior, then this will still run.&lt;/p&gt;
&lt;p&gt;Could you double check that you&amp;#39;re programming the project &amp;quot;blank&amp;quot;, located at this path:&lt;/p&gt;
&lt;p&gt;../nRF5_SDK_15.3.0_59ac345/examples/peripheral/blinky/pca10056/blank&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198613?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 07:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d17ba376-7417-4433-8981-f466dffcd9dc</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;No, my nrfjprog version is 9.8.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198601?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 07:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4811358-a8f1-46f1-b3ac-69ccef199c15</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;And nrfjprog is the newest version, v10.2.1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198528?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 14:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e94953a-8bae-48ba-8509-0e1f7fabe4de</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Hi H&amp;auml;kon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are using&amp;nbsp;JLinkARM.dll version: 6.46g&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198521?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 14:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bddd9695-d8c1-4e64-bb2c-4558fd16ea51</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of nrfjprog and JLink are you using? This can be viewed by calling &amp;quot;nrfjprog -v&amp;quot;&lt;/p&gt;
&lt;p&gt;Latest version of nrfjprog is available here:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/?sc_itemid=%7B56868165-9553-444D-AA57-15BDE1BF6B49%7D"&gt;https://www.nordicsemi.com/?sc_itemid=%7B56868165-9553-444D-AA57-15BDE1BF6B49%7D&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: make flash runs fine but stop flashing sometimes</title><link>https://devzone.nordicsemi.com/thread/198496?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 13:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:012a81a8-fb79-486e-becb-81856f3adc3e</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;I tried &amp;quot;make erase&amp;quot; and my flash works again now...&lt;/p&gt;
&lt;p&gt;But I still don&amp;#39;t understand why I need to erase and flash again after flashing a project example...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>