<?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>nrfjprog Not programming NRF52840 DK board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46309/nrfjprog-not-programming-nrf52840-dk-board</link><description>Hello everyone, 
 
 I am experiencing a weird problem; I am working on an NRF52840 DK board and writing my code in Segger Embedded Studio. 
 I do not have any problem when programming the board via the &amp;quot;Build and Run&amp;quot; commend in SES. 
 Since I wanted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 10:10:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46309/nrfjprog-not-programming-nrf52840-dk-board" /><item><title>RE: nrfjprog Not programming NRF52840 DK board</title><link>https://devzone.nordicsemi.com/thread/182560?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 10:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f53871-4c5d-4ccc-ae90-7e6f664277ab</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;nrfjprog uses JLink to target and flash nRFs&lt;br /&gt;&lt;br /&gt;If you use the command JLinkExe in a terminal (provided the command is callable from any directory), you can begin the manual connection to an nRF52. An example of this is shown below, I wrote .sh files like these to automate flashing our devices.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#!/bin/bash
JLinkExe &amp;lt;&amp;lt; EOF
connect
NRF52832_XXAA
S
9600
r
h
g
qc
EOF
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this should establish connection to a powered nRF52832 (try NRF52840_XXAA for the 840s). As this is for automated purposes its designed to run and exit once complete (simple device reset script), you need the manual approach.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkExe

connect

NRF52840_XXAA

S

9600&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From here you will see if connection ws established or not the Cortex. If it did connect try,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;r

h

erase

loadfile yourhex.hex

r

h

g&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;All being well, you should have flashed your device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>