-
Hello, I have a nucleo devboard with a built in STLink v2.1. I'd like to flash BMP to it so I can use it's STLink for general SWD purposes. I however can't for the life of me seem to figure out how I can flash BMP to the STLink. If someone could point me in the right direction, that'd be great! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
So.. your query brings a whole pile of questions:
If you could answer some of those and try out the linked tool (it'll help you answer 3 as well), that would help to answer your query. Hope that helps some. |
Beta Was this translation helpful? Give feedback.
-
I've also found out that the stlink resets when I short the reset pad at the bottom (duh), and then I get this output in stlink-tool:
Replugging does nothing. |
Beta Was this translation helpful? Give feedback.
-
We don't know the providence of that stlink-tool repository, however, we run our own with patches to fix compilation under modern GCC and which should work on Windows (using MSYS2, which is what the tool is intended to be built under): https://github.com/dragonmux/stlink-tool/tree/feature/compilation-fixes Uwe's, on which ours is based, contains fixes for how the tool talks with ST-Link v2.1's and v3's. |
Beta Was this translation helpful? Give feedback.
-
Can confirm dragonmux's advice is correct (thanks dragonmux!). I had an older version of stlink-tool from jeanthom's fork (not sure which commit) , and it fails in the same way on an old-ish STLinkV2.1 on a Nucleo:
The linked fork (commit 9ef778222) works fine:
|
Beta Was this translation helpful? Give feedback.
-
We have since formalised that repo properly as https://github.com/blackmagic-debug/stlink-tool - but this is not practically different to using the feature branch. We just wanted to make using the fork easier and particularly as the upstreams don't appear to be active any more. |
Beta Was this translation helpful? Give feedback.
-
Just a small update on this - the BMD fork of |
Beta Was this translation helpful? Give feedback.
Just a small update on this - the BMD fork of
stlink-tool
now builds and runs natively on Windows without any mucking about (via MSYS2 UCRT64, though in theory it can probably be built with MSVC now). This should now all just work for you if you use the latestmain
of the tool.