<p></p>
<p><b>@bergzand</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/15420#discussion_r564381224">cpu/stm32/periph/flashpage.c</a>:</p>
<pre style='color:#555'>> @@ -135,8 +144,19 @@ static void _erase_page(void *page_addr)
     pn = (uint8_t)page;
 #endif
     CNTRL_REG &= ~FLASH_CR_PNB;
+#if defined(CPU_FAM_STM32F4) || defined(CPU_FAM_STM32F7)
+    if (FLASHPAGE_DUAL_BANK && (pn > (FLASHPAGE_NUMOF/2 - 1))) {
+        pn = pn - (FLASHPAGE_NUMOF/2);
</pre>
<p>fixed</p>

<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/15420#discussion_r564381224">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDM3BTJWBBNJGYRVG3S32GDLANCNFSM4TQXY7ZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYEZKKTZHAWWJRZTCCDS32GDLA5CNFSM4TQXY7ZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEJL6AMQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/15420#discussion_r564381224",
"url": "https://github.com/RIOT-OS/RIOT/pull/15420#discussion_r564381224",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>