-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing <sys/mman.h> on MSYS MinGW x64, Windows 7 (was missing Package libusb-1.0) #14
Comments
Have you tried installing libusb using msys2 package manager? pacman -S mingw-w64-x86_64-libusb |
Ok that worked but later I get (after installing mingw-w64-x86_64-gcc) $ make |
Oh right, there's no mmap on Windows with msys2. There was a work of my project which offered better Windows support: https://github.com/sakana280/stlink-tool |
Thanks for that pointer. After working, unsuccessfully, on blackmagic and associated builds for the last week |
Actually I started on that page and carefully followed the instructions which say Then used the stlink-tool to load blackmagic built with make PROBE_HOST=stlink ST_BOOTLOADER=1 |
Uh... Bluepill? This is meant to reprogram one of those aluminium ST-Link, not a Blue Pill dev board? |
The link above definitely targets the blue pill |
I'm not sure to understand what you're trying to achieve? Are you trying to program a Blue Pill with an ST-Link programmer? |
what you're trying to achieve? Are you trying to program a Blue Pill with an ST-Link programmer? For a black magic programming module, I have now had some success with using the ESP-01 approach. Removing nRF52 chip protection In lieu of those, my problem now is building a CMISS-DAP module. |
Otherwise if you want to use your ST-Link as a Blackmagic probe (or any other firmware basically), you have to use a special utility to exit its DFU mode (it "boots" into DFU by default). You can use https://github.com/stlink-org/stlink for that purpose. https://github.com/stlink-org/stlink is actually the software you need to use if you want to program your Blue Pill using your ST-Link. I hope your ST-Link is still in a recoverable state. |
No does not seem to be running. I have STM's ST-Link Utility and it can no longer find the ST-Link V2. |
You'll need STLinkUpgrade.jar |
https://github.com/jeanthom/DirtyJTAG/blob/master/docs/install-stlinkv2-swd.md (SWD pinout for ST-Link v2 dongles) |
I am getting this error in msys2 when trying to compile stlink-tool
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
git clone https://github.com/jeanthom/stlink-tool
did not bring down the libusb folder
pkg-config was installed by pacman msys/pkg-config 0.29.2-4
I downloaded libusb-1.0.23.tar.bz2 from https://github.com/libusb/libusb/releases/tag/v1.0.23 but not clear to me what to do next to resolve this error.
The text was updated successfully, but these errors were encountered: