<p>Thanks for the hints! I ran <code>brew install open-ocd --HEAD</code> and got what appears to be the latest master (<code>0819541</code>). After running it with that version, I got the same issue and there was a warning: <code>WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg</code>. Hence I adjusted <a href="https://github.com/RIOT-OS/RIOT/blob/master/makefiles/tools/openocd-adapters/stlink.inc.mk#L7">https://github.com/RIOT-OS/RIOT/blob/master/makefiles/tools/openocd-adapters/stlink.inc.mk#L7</a> to <code>  -c 'source [find interface/stlink.cfg]' \</code>. The warning disappeared, the issue still remained.</p>
<p>I've then investigated the open-ocd source and digged into <code>/src/flash/nor/stm32l4x.c</code>. It doesn't include the correct settings for device_id <code>0x10006464</code>, so I added the following lines:</p>
<div class="highlight highlight-source-c"><pre>        <span class="pl-k">case</span> <span class="pl-c1">0x464</span>:
                max_flash_size_in_kb = <span class="pl-c1">128</span>;
                <span class="pl-k">break</span>;</pre></div>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/151967/64106939-8f465980-cd79-11e9-815d-532e50c9abfa.png"><img width="670" alt="Screenshot 2019-09-02 at 12 02 24 PM" src="https://user-images.githubusercontent.com/151967/64106939-8f465980-cd79-11e9-815d-532e50c9abfa.png" style="max-width:100%;"></a></p>
<p>Then I basically compiled the code manually using:</p>
<div class="highlight highlight-source-shell"><pre><span class="pl-c"><span class="pl-c">#</span> ./bootstrap nosubmodule</span>
<span class="pl-c"><span class="pl-c">#</span> ./configure --prefix=/usr/local/Cellar/open-ocd/HEAD-0819541 --enable-buspirate --enable-stlink --enable-dummy --enable-jtag_vpi --enable-remote-bitbang</span>
<span class="pl-c"><span class="pl-c">#</span> make install</span></pre></div>
<p>(I used the same prefix as brew did since I have hopes for the open-ocd project to include these changes at some point, which would then overwrite my hack as a brew bottled installation)</p>
<p>Using this updated version I could finally flash the code and test the hello-world example:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/151967/64107187-34613200-cd7a-11e9-9f4a-a9a1d79da573.png"><img width="984" alt="Screenshot 2019-09-02 at 12 07 06 PM" src="https://user-images.githubusercontent.com/151967/64107187-34613200-cd7a-11e9-9f4a-a9a1d79da573.png" style="max-width:100%;"></a></p>
<p>So I guess this PR could be tested and merged, if anyone feels like going through this procedure. <g-emoji class="g-emoji" alias="man_shrugging" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f937-2642.png">🤷‍♂</g-emoji> And no, I haven't opened an issue on open-ocd about this, because, SourceForge.</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/12144?email_source=notifications&email_token=ABE7WYC6QCNOVSI2AQULDSLQHTQ75A5CNFSM4IS3JR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VMD4I#issuecomment-527090161">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFZ3MLSGFO5OWJPRA3QHTQ75ANCNFSM4IS3JR2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEMJYIJNARW5AK6AJLQHTQ75A5CNFSM4IS3JR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VMD4I.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/12144?email_source=notifications\u0026email_token=ABE7WYC6QCNOVSI2AQULDSLQHTQ75A5CNFSM4IS3JR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VMD4I#issuecomment-527090161",
"url": "https://github.com/RIOT-OS/RIOT/pull/12144?email_source=notifications\u0026email_token=ABE7WYC6QCNOVSI2AQULDSLQHTQ75A5CNFSM4IS3JR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VMD4I#issuecomment-527090161",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>