<?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>Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48646/cannot-program-nrf52840dk-by-copying-hex-file</link><description>I am not able to program the nRF52840DK by copying over the .hex file generated by my project to the JLINK drive. However I am able to successfully program using Segger directly from within the IDE. 
 Do I need to enable something in the code or the tool</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jun 2019 08:24:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48646/cannot-program-nrf52840dk-by-copying-hex-file" /><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193816?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 08:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2db5659-1256-4c1d-8765-2bcfdbcbb1f7</guid><dc:creator>ravinp</dc:creator><description>&lt;p&gt;You can close this thread since the issue has been resolved. Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193809?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 08:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a49a91af-889a-498f-a18f-04765bc0abf7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;It&amp;#39;s good to hear that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193777?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 04:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45af22fd-63df-4660-b37e-f8d6d4d4f535</guid><dc:creator>ravinp</dc:creator><description>&lt;p&gt;OK I now understand what is happening. Not sure if this is the correct way but for now I&amp;#39;m able to create a file that is flashed using USB copy by programming the DK using Segger and using nRF connect to read back and create a hex file from that. That file can be used to flash the DK using copy.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193606?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 09:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582efdd6-dd82-4c66-bc55-46dd8d1d13fe</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You are missing the MBR hex which&amp;nbsp;can be found in components\softdevice\mbr\nrf52840\hex&lt;/p&gt;
[quote user="ravinp"]Both work when flashed directing from within Segger.[/quote]
&lt;p&gt;Segger will flash the MBR hex for you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you drag-drop-program the application hex file, the MBR/Softdevice will not be flashed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the SES examples, segger flashes the MBR/SoftDevice with&amp;nbsp;the &amp;quot;load additional file&amp;nbsp;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The blank&amp;nbsp;project does not use the MBR, and the flash offset is 0. The MBR project the flash offset is 0x1000&amp;nbsp;to make room for the MBR (it&amp;#39;s located from 0x00 to 0x1000 in flash).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can install the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect Programmer app&lt;/a&gt;&amp;nbsp;to make sure all the files are included as the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nc_programmer/UG/nrf_connect_programmer/ncp_application_overview.html?cp=6_3_1_4"&gt;application overview&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193531?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 05:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:398c3936-8569-439a-8759-9e2c331c96b6</guid><dc:creator>ravinp</dc:creator><description>&lt;p&gt;Hi - I don&amp;#39;t believe this is the solution. This is because the project has the file included already and it is not working. In addition I believe the SoftDevice is the BLE stack and not related to flashing the device using USB copy. Here is another example not even using BLE - Peripheral/blinky has two projects - blank and mbr. blank works if the generated hex is copied to JLINK. mbr does not work. Both work when flashed directing from within Segger. There are project/build related differences in the projects but so far I cannot identify what is causing one to work and not the other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193304?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 07:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0476d61a-263b-4ce3-a640-8d7dff29aed9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Please let me correct the solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the&amp;nbsp;&lt;a title="BLE Blinky Application" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_blinky.html?cp=5_1_4_2_2_3"&gt;BLE Blinky Application&lt;/a&gt;, there is a statement:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;b&gt;Important:&lt;/b&gt;&amp;nbsp;Before you run this example, make sure to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/getting_started_softdevice.html#getting_started_sd"&gt;program the SoftDevice&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You need to load additional file for &amp;lt;nRF5_SDK&amp;gt;\components\softdevice\s140\hex\s140_nrf52_6.1.1_softdevice.hex&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-66630a337d3145fb958b02c2a011204e/ses_5F00_sd.png" /&gt;&lt;/p&gt;
&lt;p&gt;This will flash the SoftDevice, and then the application is flashed afterward.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193265?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 21:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3b04b6f-982f-4a6d-90a2-c9350b0566ff</guid><dc:creator>ravinp</dc:creator><description>&lt;p&gt;Hi - I&amp;#39;m not clear how to use the .hex file attached. Maybe I can illustrate with an example. If I go to&amp;nbsp;examples\ble_peripheral\ble_app_blinky\hex and copy ble_app_blinky_pca10056_s140.hex (pre-compiled hex) that to the JLINK drive, the DK gets programmed and the one LED lights. If I open the project and build the hex using Segger and program from within the IDE it also works fine. However if I copy the generated hex file from the Segger project to the JLINK drive - located in&amp;nbsp;examples\ble_peripheral\ble_app_blinky\pca10056\s140\ses\Output\Release\Exe - the LED remains off and the DK does not appear to program. Is there something in the configuration which enables the generated hex file to program the DK via USB using file copy?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot program nRF52840DK by copying hex file</title><link>https://devzone.nordicsemi.com/thread/193138?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 11:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15561119-a61c-4cc0-be17-206bb9b0936c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For nRF Connect&amp;nbsp;Bluetooth Low Energy App, I would recommend using the connectivity .hex that the app prompts you to flash:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-66630a337d3145fb958b02c2a011204e/pastedimage1560769235486v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the .hex the current version of BLE app will&amp;nbsp;prompt you to flash for the nRF52840-DK:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connectivity_5F00_1.2.3_5F00_1m_5F00_with_5F00_s132_5F00_3.1.hex"&gt;connectivity_1.2.3_1m_with_s132_3.1.hex&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And then you use the J2 USB connector on the short side of the DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>