<blockquote>
<p>Does gdb work on your board? Can you try stepping through the stmclk code and see if it takes a different path after openocd / after cold boot?</p>
</blockquote>
<p>If I debug threw RIOT (i.e:  <code>make debug</code>) the problem reappears, even after previous cold boot, this is not the case with <code>st-util</code>. Calling <code>make reset</code> also restores the previous <code>hardfaulting</code> behaviour.</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/11820?email_source=notifications&email_token=ABE7WYGYPEY4IN2AQIK5IGLP6SHCDA5CNFSM4H7EJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQIM6I#issuecomment-509642361">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDQMU7VGNSE5PCHYR3P6SHCDANCNFSM4H7EJQMA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEYC2SZP3DRTHRE23DP6SHCDA5CNFSM4H7EJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQIM6I.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/issues/11820?email_source=notifications\u0026email_token=ABE7WYGYPEY4IN2AQIK5IGLP6SHCDA5CNFSM4H7EJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQIM6I#issuecomment-509642361",
"url": "https://github.com/RIOT-OS/RIOT/issues/11820?email_source=notifications\u0026email_token=ABE7WYGYPEY4IN2AQIK5IGLP6SHCDA5CNFSM4H7EJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQIM6I#issuecomment-509642361",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>