Compiling latest BMP on Windows for ST Link V2
Posted: Tue Feb 12, 2019 6:05 am
I'm at the end of my (limited) wits. I'm setting up a new dev environment (Atollic) for the STM32. I plan to use an eBay clone St Link as a BMP, by flashing the BMP_DFU and BMP binaries with another St Link clone.
I found a 1.6 RC0 binary already built (https://embdev.net/articles/STM_Discove ... agic_Probe) and successfully flashed BMP 1.6 RC0 on it. Everything works. But it's a rather old binary (mid 2016), and I wanted to update to 1.6.1 release, the latest
Problem is, I cannot compile the sources, and I'm spending way too much time trying to install a dev environment that works on Windows with the Makefile used by BMP. I tried installing the full mingw-w64 environment with the Arm toolchain, but I get a series of errors (I think because it used cmd.exe style syntax while the makefile uses Bash-like syntax). then I tried a full install of MSYS2, updated everything, installed mingw-w64 under it, plus the arm gcc toolchain, and the makefile seems to work a bit better, but still errors out not finding python in /usr/bin/env (even if python2 is installed in the usr/bin directory
Can anyone suggest how to install a minimal dev environment in Windows to compile BMP 1.6.1? I'm trying to avoid setting up a Linux VM, since I don't have that much free HD space, and would prefer to do it in Windows. It's just a temp install for me anyway, since I'll use either Atollic or STM32duino for my coding
Or, in alternative, can someone post the compiled dfu.bin, bmp.bin and update.exe from BMP 1.6.1, compiled with target=stlink?
thanks in advance, Rob
I found a 1.6 RC0 binary already built (https://embdev.net/articles/STM_Discove ... agic_Probe) and successfully flashed BMP 1.6 RC0 on it. Everything works. But it's a rather old binary (mid 2016), and I wanted to update to 1.6.1 release, the latest
Problem is, I cannot compile the sources, and I'm spending way too much time trying to install a dev environment that works on Windows with the Makefile used by BMP. I tried installing the full mingw-w64 environment with the Arm toolchain, but I get a series of errors (I think because it used cmd.exe style syntax while the makefile uses Bash-like syntax). then I tried a full install of MSYS2, updated everything, installed mingw-w64 under it, plus the arm gcc toolchain, and the makefile seems to work a bit better, but still errors out not finding python in /usr/bin/env (even if python2 is installed in the usr/bin directory
Can anyone suggest how to install a minimal dev environment in Windows to compile BMP 1.6.1? I'm trying to avoid setting up a Linux VM, since I don't have that much free HD space, and would prefer to do it in Windows. It's just a temp install for me anyway, since I'll use either Atollic or STM32duino for my coding
Or, in alternative, can someone post the compiled dfu.bin, bmp.bin and update.exe from BMP 1.6.1, compiled with target=stlink?
thanks in advance, Rob