<?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>Upload program to nRF52840 via nRF52840-DK as J-Link</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113149/upload-program-to-nrf52840-via-nrf52840-dk-as-j-link</link><description>Hello. 
 I encountered the following problem. I have an nRF52840 microcontroller that is already soldered onto the PCB board. It doesn&amp;#39;t have any bootloader. As an example, I created a simple program in the nRF5 SDK (SES) that flashes an LED: 
 If I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 19:12:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113149/upload-program-to-nrf52840-via-nrf52840-dk-as-j-link" /><item><title>RE: Upload program to nRF52840 via nRF52840-DK as J-Link</title><link>https://devzone.nordicsemi.com/thread/494654?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 19:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:084b740a-c304-4856-974e-caaf45096efd</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;The image you have is a bit outdated as it shows the old nRF52DK, but in theory it is still the same.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721329828312v1.png" alt=" " /&gt;&lt;br /&gt;Make sure that you have nRF_VDD and VTG shorted and connected to the external board. From your image it does not loook like you have power connected correctly.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721329959884v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]2) How can I be sure that I have connected the SWD interface pins correctly? On a regular J-Link, the green LED should be lit, indicating that the device is connected via SWD. I read this somewhere, but I could be wrong...&lt;br /&gt;Is there something similar in the nRF52840-DK? Or can I somehow see on the computer that I have a device connected via SWD?[/quote]
&lt;p&gt;There is no way to know, the DK does not indicate what SoC has been programmed visually on the kit it self.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are using the nRF connect for Desktop Programmer app when connecting to the device then you can first wipe\erase (or flash a known app on there, like all LEDs on, if you want a visual indicator ) the DK so that it is blank. It will then show up as empty or will show the app that is loaded on there. When you then connect an external SoC to it it will show up as that and you can see whats loaded on there. If it differs from that of the known app you have on the DK then you know it is connected to the external one.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]3) Is this the correct sequence to load the program I need onto my PCB? I mean through a .hex file. Or should we do something differently?[/quote]
&lt;p&gt;Same thing as for the DK or any other device if there is no bootloader. You can use the Programmer app, nRFUtil, nRFjprog or whatever interface the IDE that you are using uses. SES or VSCode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upload program to nRF52840 via nRF52840-DK as J-Link</title><link>https://devzone.nordicsemi.com/thread/494605?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 13:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a30e823c-c454-4660-96a8-5ee7119dbab5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve picked up your case and will be looking into it. However it may take some time, but you should expect a follow up during next week.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>