<blockquote>
<p>The issue comes from the calculation of SLOT_LEN that does not have any information of a cpu page size and so need to assume that ROM_LEN - RIOTBOOT_LEN is a multiple of 2 pages.<br>
I am not sure having the "page size" information in the build system is needed or even wanted.<br>
And a solution doing "lets give 2 pages to the bootloader" is for me good enough.</p>
</blockquote>
<p>And this should be at least documented even if it cannot be checked in the build system.</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/issues/11274#issuecomment-476546695">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YNpuqWwivUZP_0Uv0iRvrULM5C_fks5vaeuEgaJpZM4cK5pZ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YAO2QVl5TROHmFamO4yauM5cc99Yks5vaeuEgaJpZM4cK5pZ.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":"PERSON","message":"@cladmi in #11274: \u003e The issue comes from the calculation of SLOT_LEN that does not have any information of a cpu page size and so need to assume that ROM_LEN - RIOTBOOT_LEN is a multiple of 2 pages.\r\n\u003e I am not sure having the \"page size\" information in the build system is needed or even wanted.\r\n\u003e And a solution doing \"lets give 2 pages to the bootloader\" is for me good enough.\r\n\r\nAnd this should be at least documented even if it cannot be checked in the build system."}],"action":{"name":"View Issue","url":"https://github.com/RIOT-OS/RIOT/issues/11274#issuecomment-476546695"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/11274#issuecomment-476546695",
"url": "https://github.com/RIOT-OS/RIOT/issues/11274#issuecomment-476546695",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>