<?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 flashing example ble peripheral programs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24066/problem-flashing-example-ble-peripheral-programs</link><description>Hi I am new to Nordic development and set up all the tools required for compiling and flashing program to nrf52840 0n ubuntu. I downloaded nrfjprog and jlink segger and put it in the required path: /OPT/. 
 I am not able to flash any programs to nrf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Aug 2017 16:48:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24066/problem-flashing-example-ble-peripheral-programs" /><item><title>RE: Problem flashing example ble peripheral programs</title><link>https://devzone.nordicsemi.com/thread/94771?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 16:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:783a5675-e7ab-4fe8-85d2-7a4b4f1788d0</guid><dc:creator>pranavsk1994</dc:creator><description>&lt;p&gt;Hi, Thankyou for your input. Yes I am using gcc build environment, but I am not able to do&lt;/p&gt;
&lt;p&gt;make flash and make flash_softdevice&lt;/p&gt;
&lt;p&gt;I am getting the following error:&lt;/p&gt;
&lt;p&gt;ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please&lt;/p&gt;
&lt;p&gt;I have installed segger JLINK in required path but it still does not work. They say please update to recent version, I have downloaded the recent version for the website.&lt;/p&gt;
&lt;p&gt;But mergehex thing works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing example ble peripheral programs</title><link>https://devzone.nordicsemi.com/thread/94773?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 16:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:452e2e26-24f2-403c-b781-297bb377138b</guid><dc:creator>pranavsk1994</dc:creator><description>&lt;p&gt;Thanks the mergehex thing worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing example ble peripheral programs</title><link>https://devzone.nordicsemi.com/thread/94772?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 00:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3584b3ac-b8da-43cf-b91e-a6732d520395</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The example hex has Softdevice &amp;amp; firmware merged into one single hex. That is why it worked. You need to do the same. I think nrfutil can mergehex. There is also a mergehex utility provided by Nordic. Search this forum for mergehex, you&amp;#39;ll find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing example ble peripheral programs</title><link>https://devzone.nordicsemi.com/thread/94770?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 23:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68884b1-4da6-4d90-98b3-575b6f50f2c8</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;AFIK. If you drag and drop , it erases the whole of flash and then flashes your application hex&lt;/p&gt;
&lt;p&gt;However, when it erases the whole of the flash, it also erases the SoftDevice.&lt;/p&gt;
&lt;p&gt;So if you want to use drag and drop, you need to merge your application hex with the Softdevice hex, every time before you upload.&lt;/p&gt;
&lt;p&gt;You have not stated what build environment you are using, but if you are using the Gcc make file, then just use the&lt;/p&gt;
&lt;p&gt;make flash&lt;/p&gt;
&lt;p&gt;command, as this will just flash your application and not erase the Softdevice.&lt;/p&gt;
&lt;p&gt;You would of course need to flash the Softdevice once in the first place, either by dragging and dropping, or there is a make file target which does that, which I think is&lt;/p&gt;
&lt;p&gt;make flash-softdevice&lt;/p&gt;
&lt;p&gt;But you would need to double check the syntax&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>