<?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>Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36952/command-line-programming-nrf52840-dongle</link><description>I&amp;#39;ve been trying to find a way to program a hex file onto the dongle via the command line on linux. 
 I would very much prefer not having to touch the mouse in order to program the dongle, so the Programmer App is out of the question. Also, it doesn&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Aug 2018 12:11:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36952/command-line-programming-nrf52840-dongle" /><item><title>RE: Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/145510?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 12:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbfaac0-3d6c-4013-955b-59c91b9ec309</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Andri,&lt;/p&gt;
&lt;p&gt;it would be great if you could confirm if your trying to update the dongle with an application built with Zephyr or if its an application built with the nRF5 SDK. If it is a Zephyr application then you&amp;nbsp; will have to make sure it is compatible with the interrupt forwarding scheme of the MBR, as stated by &lt;a href="https://devzone.nordicsemi.com/members/paka"&gt;PaKa&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/144958?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 13:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d6dfbe8-6659-466d-9f25-ebb64f5fae0d</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;just to make sure, if you plan to use Zephyr then you should not have the Softdevice programmed, seems the suggestion from Bj&amp;oslash;rn used this. &lt;/p&gt;
&lt;p&gt;The Dongle will always have the MBR from the Softdevice in the first block (unless you use an external SWD programmer for programming) so your Zephyr application needs to work despite this, that means work with the MBR interrupt forwarding scheme. You may use VTOR to change the location of the interrupt table as an option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/144896?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 10:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5b65661-f85c-4ba4-9912-4d88b0a72d04</guid><dc:creator>Andri</dc:creator><description>&lt;p&gt;Hi Bj&lt;span class="character-sample-primary Latn"&gt;&amp;oslash;&lt;/span&gt;rn,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s understandable given the fellesferie.&lt;/p&gt;
&lt;p&gt;You wouldn&amp;#39;t happen to know how I can configure the FLASH start address in Zephyr? They have quite a complicated build system. Editing the linker script does not seem to be a straight-forward task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/144751?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 14:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6acf8b86-d83c-4403-8c09-e4ef399131e9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Andrii,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I sincerely apologize for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should be able to generate an application firmware image that uses the S140 v6.0.0 using the following command&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --application ble_app_blinky_pca10059_s140.hex --application-version 5 --hw-version 52 --sd-req 0xA9 ble_app_blinky.zip&lt;/p&gt;
&lt;p&gt;Note: You need to set the FLASH length so that ORIGIN+ LENGTH &amp;lt; 0xE0000 (start address of the bootloader)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Command Line Programming nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/141780?ContentTypeID=1</link><pubDate>Sat, 28 Jul 2018 19:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9250c69-9c68-433c-b168-6016d7ab743f</guid><dc:creator>Andri</dc:creator><description>&lt;p&gt;I found out that the nRF Connect programmer will work if I edit the GCC linker script. Replace:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x100000
  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x40000
}&lt;/pre&gt;&lt;br /&gt;with&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0xff000
  RAM (rwx) :  ORIGIN = 0x20000008, LENGTH = 0x3fff8
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It does not help with nrfutil, so I&amp;#39;m still missing a way to do it on the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>