<?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>west flash --recover on nRF54L15 erases mcuboot after flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128686/west-flash---recover-on-nrf54l15-erases-mcuboot-after-flashing</link><description>Hi Nordic Support! 
 I&amp;#39;m working on a custom board using the nRF54L15. I&amp;#39;m utilizing both mcuboot and the flpr core, so in total I have three domains to flash. This works fine when I run west flash . All three images get flashed. But sometimes I need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2026 11:58:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128686/west-flash---recover-on-nrf54l15-erases-mcuboot-after-flashing" /><item><title>RE: west flash --recover on nRF54L15 erases mcuboot after flashing</title><link>https://devzone.nordicsemi.com/thread/568999?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2026 11:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70dbe6f9-15db-496b-a8fe-a6cf9a6d51e5</guid><dc:creator>Fridtjof</dc:creator><description>&lt;p&gt;The issue stemmed from adding board revisions to my custom board. This meant that instead of building for &lt;code&gt;plank/nrf54l15/cpuapp&lt;/code&gt;&amp;nbsp;I was building for &lt;code&gt;plank@0.2.0/nrf54l15/cpuapp&lt;/code&gt;, which does not match the entries in my board.yml which specify what &amp;quot;runners&amp;quot; should only be run once.&lt;/p&gt;
&lt;p&gt;To solve this I added some regex to the runner board names, appending the board name with &lt;code&gt;@?.*&lt;/code&gt;. (For those not familiar with regex, this means an optional @ followed by&amp;nbsp;zero or more of any character.)&lt;/p&gt;
&lt;p&gt;I changed this section of my board.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;runners:
  run_once:
    &amp;#39;--recover&amp;#39;:
      - runners:
          - nrfjprog
          - nrfutil
        run: first
        groups:
          - boards:
              - plank/nrf54l15/cpuapp
              - plank/nrf54l15/cpuflpr
    &amp;#39;--erase&amp;#39;:
      - runners:
          - nrfjprog
          - jlink
          - nrfutil
        run: first
        groups:
          - boards:
              - plank/nrf54l15/cpuapp
              - plank/nrf54l15/cpuflpr
    &amp;#39;--reset&amp;#39;:
      - runners:
          - nrfjprog
          - jlink
          - nrfutil
        run: last
        groups:
          - boards:
              - plank/nrf54l15/cpuapp
              - plank/nrf54l15/cpuflpr
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;runners:
  run_once:
    &amp;#39;--recover&amp;#39;:
      - runners:
          - nrfjprog
          - nrfutil
        run: first
        groups:
          - boards:
              - plank@?.*/nrf54l15/cpuapp
              - plank@?.*/nrf54l15/cpuflpr
    &amp;#39;--erase&amp;#39;:
      - runners:
          - nrfjprog
          - jlink
          - nrfutil
        run: first
        groups:
          - boards:
              - plank@?.*/nrf54l15/cpuapp
              - plank@?.*/nrf54l15/cpuflpr
    &amp;#39;--reset&amp;#39;:
      - runners:
          - nrfjprog
          - jlink
          - nrfutil
        run: last
        groups:
          - boards:
              - plank@?.*/nrf54l15/cpuapp
              - plank@?.*/nrf54l15/cpuflpr&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now west flash understands that it should run recover/erase only once at the start and reset once at the end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>