<h3>Contribution description</h3>

<p>This PR adds the option to use the stm32l0_dual_bank.cfg configuration file for flashing with openocd. This allows to use the full flash space. The problem is this is not available on all openocd versions, needs to be compiled from source to be present. That is why I added a Makefile variable that a user can define if it flashes using stm32l0_dual_bank.cfg instead of stm32l0.cfg. In <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="418762847" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11141" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11141/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11141">#11141</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1375137" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aabadie">@aabadie</a> sugested the default behavior should be using stm32l0.cfg. I welcome thoughts on a better way to do this, (some clever way to check opeoncd version?).</p>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="371949109" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10206" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/10206/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/10206">#10206</a> won't be fixed on build tests unless OPENOCD_STM32L0_DUAL_BANK=1 is set.</p>
<h3>Testing procedure</h3>

<p>It can be tested by the same procedure as <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="418762847" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11141" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11141/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11141">#11141</a> or veryfing the is fixes the issue in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="371949109" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10206" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/10206/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/10206">#10206</a> by running:</p>
<p><code>make BOARD=b-l072z-lrwan1 OPENOCD_STM32L0_DUAL_BANK=1 -C examples/lua_basic/  flash </code></p>
<h3>Issues/PRs references</h3>

<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #10206.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="371949109" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10206" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/10206/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/10206">#10206</a>, needed by <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="418762847" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11141" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11141/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11141">#11141</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/11174'>https://github.com/RIOT-OS/RIOT/pull/11174</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>boards/stm32: provide dual bank support for stm32l0</li>
  <li>boards/stm32l07x: openocd dual bank option for l07x</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11174/files#diff-0">boards/b-l072z-lrwan1/Makefile.include</a>
    (9)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11174/files#diff-1">boards/common/stm32/dist/stm32l0_dual_bank.cfg</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11174/files#diff-2">boards/nucleo-l073rz/Makefile.include</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11174.patch'>https://github.com/RIOT-OS/RIOT/pull/11174.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11174.diff'>https://github.com/RIOT-OS/RIOT/pull/11174.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11174">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YK4mLcR2Rkv0tnh8lCwiOVzJDgoFks5vWScigaJpZM4btqu-">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YKLV34HsF4TzmoUtobqSEcgd6MfEks5vWScigaJpZM4btqu-.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Stm32lx dual bank (#11174)"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/11174"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11174",
"url": "https://github.com/RIOT-OS/RIOT/pull/11174",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>