<?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>Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90076/select-runner-for-flash-command-in-nrf-connect</link><description>Hi! 
 In nRF Connect Extension for VSCode, how can I set a (non-default) runner for the Flash Action in the Actions View? 
 Specifically, I&amp;#39;ve got my Adafruit Feather nrf52840 connected via USB and SEGGER JLink and would like to use jlink as a flasher</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 May 2023 07:00:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90076/select-runner-for-flash-command-in-nrf-connect" /><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/426039?ContentTypeID=1</link><pubDate>Wed, 17 May 2023 07:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b635758-c4e1-4b32-9c65-50ce94a7f82f</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome. Unfortunately, I don&amp;#39;t have an answer to your last question, although I&amp;#39;d be interested myself.&amp;nbsp;That&amp;#39;s probably something one of the Nordic engineers present on the network could/should answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/426003?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 22:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13de662e-342c-4036-a0b1-bd0066d90825</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/jerico"&gt;Florian&lt;/a&gt;&amp;nbsp;&lt;br /&gt;Hello Florian,&lt;/p&gt;
&lt;p&gt;Thank you!. It&amp;#39;s much appreciated!&lt;/p&gt;
&lt;p&gt;The two items I was missing were&lt;/p&gt;
&lt;p&gt;1. &amp;quot;options&amp;quot; key to set ZEPHYR_BASE&amp;nbsp;so that&amp;nbsp;VSCode sees the west command in its environment. I was expecting this to be&amp;nbsp;handled automatically as the action is from within VSCode.&lt;/p&gt;
&lt;p&gt;2. Build directory as part of the &amp;quot;command&amp;quot; in &amp;quot;tasks&amp;quot;. Also, specify the Segger Edu Mini device-id.&lt;/p&gt;
&lt;p&gt;The action execution is a bit slow but at least it works now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I really would like is to have the &amp;quot;Flash&amp;quot; action run the jlink as runner for all the projects in my workspace, so that&amp;nbsp;I don&amp;#39;t have to specify&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;lt;YOUR-APP-FOLDER&amp;gt;&amp;quot; &amp;nbsp;in the path&amp;nbsp;&lt;/span&gt;&amp;quot;${workspaceFolder}/&amp;lt;YOUR-APP-FOLDER&amp;gt;/build&amp;quot;.&lt;br /&gt;&lt;br /&gt;Is there a way to use the currently selected build path to avoid specifying &amp;quot;&lt;span&gt;&amp;lt;YOUR-APP-FOLDER&amp;gt;&amp;quot; explicitly? I don&amp;#39;t want to have separate flash actions for all my projects in the workspace.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Of course, a &amp;quot;nRF Connect for VSCode&amp;quot; enhancement to add an&lt;/span&gt;&amp;nbsp;option to select a &amp;quot;runner&amp;quot; of choice in the nRF Connect extension would be the easiest and best option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once again, Thank you for the very quick response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/425807?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 09:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9dc3ab-b442-4678-b142-105423de1adf</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;The original links seem to be dead - found the docs here:&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html"&gt;nrfconnect.github.io/.../build_bind_tasks.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;These docs are much better than my own explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/425805?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 09:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b89ac45-c9cc-4e75-82b3-9a684068ea73</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Hi zpm1066,&lt;/p&gt;
&lt;p&gt;AFAICS there is no way to&amp;nbsp;make jlink the default runner of the nRF Connect extension, which only seems to co-operate with the Nordic tools ootb. There is however a recommended workaround which is what I&amp;#39;m pointing to in my previous post.&lt;/p&gt;
&lt;p&gt;Before you can link a task you have to create one in the&amp;nbsp;tasks section&amp;nbsp;of your&amp;nbsp;app.workspace file (or alternatively in the tasks.json file - depending on how you set up your workspace):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  &amp;quot;tasks&amp;quot;: {
    &amp;quot;version&amp;quot;: &amp;quot;2.0.0&amp;quot;,
    &amp;quot;tasks&amp;quot;: [
      {
        &amp;quot;label&amp;quot;: &amp;quot;JLink Flash&amp;quot;,
        &amp;quot;type&amp;quot;: &amp;quot;shell&amp;quot;,
        &amp;quot;command&amp;quot;: &amp;quot;west flash --runner=jlink --dev-id YOUR-DEVICE-ID -d ${workspaceFolder:YOUR-APP-FOLDER}/build&amp;quot;,
        &amp;quot;presentation&amp;quot;: {
          &amp;quot;clear&amp;quot;: true,
          &amp;quot;reveal&amp;quot;: &amp;quot;always&amp;quot;
        }
      }
    ]
  },
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;VSCode has&amp;nbsp;some kind of wizard to add tasks if you don&amp;#39;t want to add them manually.&amp;nbsp;You may want to test the west command first. And you have to ensure that VSCode sees the west command in its environment.&lt;/p&gt;
&lt;p&gt;if you then follow the documentation linked in my previous post you should end up with&amp;nbsp;something like the following entry in&amp;nbsp;your VSCode workspace&amp;nbsp;settings file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    &amp;quot;nrf-connect.taskBindings&amp;quot;: {
      &amp;quot;flash&amp;quot;: [
        {
          &amp;quot;taskName&amp;quot;: &amp;quot;JLink Flash&amp;quot;,
          &amp;quot;buildConfigs&amp;quot;: [
            &amp;quot;${workspaceFolder:YOUR-APP-FOLDER-HERE}/build&amp;quot;
          ]
        }
      ]
    },&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These two entries combined should link your &amp;quot;Flash&amp;quot; Action to the given west command which is then used in lieu of the native action.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/425729?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 21:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f1dcc09-91be-41df-b2a7-05f41976cfa8</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/jerico"&gt;Florian&lt;/a&gt;&amp;nbsp;&lt;br /&gt;Hello. I&amp;#39;m trying to make jlink the default runner for flashing. It looks like you have it working.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created a &amp;quot;tasks&amp;quot; key in the Workspace settings, then bound the task to an action. My custom &amp;quot;jlink flash&amp;quot; action appears under Actions but when I click on it, nothing happens.&lt;br /&gt;&lt;br /&gt;Appreciate if you could share your solution? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/378407?ContentTypeID=1</link><pubDate>Sat, 23 Jul 2022 06:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307d3786-adc6-498f-9033-104da6051d35</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Found the solution myself:&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/connect/release_notes/2022.6.22.html#bind-custom-tasks-to-actions"&gt;https://nrfconnect.github.io/vscode-nrf-connect/connect/release_notes/2022.6.22.html#bind-custom-tasks-to-actions&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/connect/advanced_features.html#bind-task-to-action"&gt;https://nrfconnect.github.io/vscode-nrf-connect/connect/advanced_features.html#bind-task-to-action&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/378406?ContentTypeID=1</link><pubDate>Sat, 23 Jul 2022 06:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796358a4-9238-40e8-b7f8-058d12788698</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Thanks for your response. I didn&amp;#39;t ask about the command line, though, I asked about the &lt;strong&gt;nRF Connect VSCode Extension&lt;/strong&gt; - and more specifically about the &lt;strong&gt;Flash Action there in the Actions View.&lt;/strong&gt;&amp;nbsp;Building from the command line works as expected. I had tested that before.&lt;/p&gt;
&lt;p&gt;Setting&amp;nbsp;&lt;span&gt;BOARD_FLASH_RUNNER =&amp;nbsp;jlink in the nrf Connect Extension&amp;#39;s build configuration doesn&amp;#39;t help either, by the way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you could point me to some&amp;nbsp;documentation re how to configure the flash action that would be highly appreciated.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select runner for Flash Command in nRF Connect</title><link>https://devzone.nordicsemi.com/thread/377428?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 13:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d0ac6c8-fb53-40a1-bbbd-5ab4c9319529</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could choose desired runner using west in several ways shown in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/build-flash-debug.html?highlight=west%20flash%20runner"&gt;documentation&lt;/a&gt;.&lt;br /&gt;For example &amp;quot;west flash --runner jlink&amp;quot; would change the runner to jlink.&lt;br /&gt;Another option would be to override default flash runner at build time using BOARD_FLASH_RUNNER&amp;nbsp;like this&amp;nbsp;&lt;br /&gt;&amp;quot;west build [...] -- -DBOARD_FLASH_RUNNER =&amp;nbsp;jlink&amp;quot;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>